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
-
Constructor Summary
ConstructorDescriptionOXMJavaPackageImpl
(String aPackage) Construct a new instance ofOXMJavaPackageImpl
. -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(JavaClass aClass) If thisJavaPackage
is annotated with anAnnotation
matchingaClass
, return itsJavaAnnotation
representation.Return all of theAnnotations
for 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 thisJavaPackage
is annotated with anAnnotation
matchingaClass
, return itsJavaAnnotation
representation.- Specified by:
getAnnotation
in interfaceJavaHasAnnotations
- Parameters:
aClass
- aJavaClass
representing theAnnotation
to look for.- Returns:
- always returns
null
asJavaTypes
do not haveAnnotations
.
-
getAnnotations
Return all of theAnnotations
for thisJavaPackage
.- Specified by:
getAnnotations
in interfaceJavaHasAnnotations
- Returns:
- always returns
null
asJavaTypes
do not haveAnnotations
.
-
getName
Returns the name of thisJavaPackage
.- Returns:
- the
String
name of thisJavaPackage
.
-
getQualifiedName
Returns the fully-qualified name of thisJavaPackage
.- Specified by:
getQualifiedName
in interfaceJavaPackage
- Returns:
- the
String
name of thisJavaPackage
.
-
getDeclaredAnnotation
Not supported.- Specified by:
getDeclaredAnnotation
in interfaceJavaHasAnnotations
-
getDeclaredAnnotations
Not supported.- Specified by:
getDeclaredAnnotations
in interfaceJavaHasAnnotations
-