Module org.eclipse.persistence.moxy
Class XJCJavaPackageImpl
java.lang.Object
org.eclipse.persistence.jaxb.javamodel.xjc.XJCJavaPackageImpl
- All Implemented Interfaces:
JavaHasAnnotations,JavaPackage
INTERNAL:
Purpose: JavaPackage implementation wrapping XJC's JPackage. Used when
bootstrapping a DynamicJAXBContext from an XML Schema.
Responsibilities:
- Provide
Packageinformation from the underlyingJPackage.
- Since:
- EclipseLink 2.1
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXJCJavaPackageImpl(com.sun.codemodel.JPackage jPackage, DynamicClassLoader loader) Construct a new instance ofXJCJavaPackageImpl. -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation(JavaClass aClass) If thisJavaPackageis annotated with anAnnotationmatchingaClass, return itsJavaAnnotationrepresentation.Return all of theAnnotationsfor thisJavaPackage.Not supported.Not supported.getName()Returns the name of thisJavaPackage.Returns the fully-qualified name of thisJavaPackage.
-
Field Details
-
xjcPackage
protected com.sun.codemodel.JPackage xjcPackage
-
-
Constructor Details
-
XJCJavaPackageImpl
Construct a new instance ofXJCJavaPackageImpl.- Parameters:
jPackage- - the XJCJPackageto be wrapped.loader- - theClassLoaderused to bootstrap theDynamicJAXBContext.
-
-
Method Details
-
getAnnotation
If thisJavaPackageis annotated with anAnnotationmatchingaClass, return itsJavaAnnotationrepresentation.- Specified by:
getAnnotationin interfaceJavaHasAnnotations- Parameters:
aClass- aJavaClassrepresenting theAnnotationto look for.- Returns:
- the
JavaAnnotationrepresented byaClass, if one exists, otherwise returnnull.
-
getAnnotations
Return all of theAnnotationsfor thisJavaPackage.- Specified by:
getAnnotationsin interfaceJavaHasAnnotations- Returns:
- A
Collectioncontaining thisJavaPackage'sJavaAnnotations.
-
getName
Returns the name of thisJavaPackage.- Returns:
- the
Stringname of thisJavaPackage.
-
getQualifiedName
Returns the fully-qualified name of thisJavaPackage.- Specified by:
getQualifiedNamein interfaceJavaPackage- Returns:
- the
Stringname of thisJavaPackage.
-
getDeclaredAnnotation
Not supported.- Specified by:
getDeclaredAnnotationin interfaceJavaHasAnnotations
-
getDeclaredAnnotations
Not supported.- Specified by:
getDeclaredAnnotationsin interfaceJavaHasAnnotations
-