Module org.eclipse.persistence.moxy
Class OXMJavaPackageImpl
java.lang.Object
org.eclipse.persistence.jaxb.javamodel.oxm.OXMJavaPackageImpl
- All Implemented Interfaces:
JavaHasAnnotations,JavaPackage
INTERNAL:
Purpose: JavaPackage implementation used when bootstrapping
a DynamicJAXBContext from XML Bindings.
Responsibilities:
- Provide Package information to the
JavaModel.
- Since:
- EclipseLink 2.2
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOXMJavaPackageImpl(String aPackage) Construct a new instance ofOXMJavaPackageImpl. -
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
-
packageName
-
-
Constructor Details
-
OXMJavaPackageImpl
Construct a new instance ofOXMJavaPackageImpl.- Parameters:
aPackage- - the name of thisJavaPackage.
-
-
Method Details
-
getAnnotation
If thisJavaPackageis annotated with anAnnotationmatchingaClass, return itsJavaAnnotationrepresentation.- Specified by:
getAnnotationin interfaceJavaHasAnnotations- Parameters:
aClass- aJavaClassrepresenting theAnnotationto look for.- Returns:
- always returns
nullasJavaTypesdo not haveAnnotations.
-
getAnnotations
Return all of theAnnotationsfor thisJavaPackage.- Specified by:
getAnnotationsin interfaceJavaHasAnnotations- Returns:
- always returns
nullasJavaTypesdo not haveAnnotations.
-
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
-