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
Package
information from the underlyingJPackage
.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionXJCJavaPackageImpl
(com.sun.codemodel.JPackage jPackage, DynamicClassLoader loader) Construct a new instance ofXJCJavaPackageImpl
. -
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
-
xjcPackage
protected com.sun.codemodel.JPackage xjcPackage
-
-
Constructor Details
-
XJCJavaPackageImpl
Construct a new instance ofXJCJavaPackageImpl
.- Parameters:
jPackage
- - the XJCJPackage
to be wrapped.loader
- - theClassLoader
used to bootstrap theDynamicJAXBContext
.
-
-
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:
- the
JavaAnnotation
represented byaClass
, if one exists, otherwise returnnull
.
-
getAnnotations
Return all of theAnnotations
for thisJavaPackage
.- Specified by:
getAnnotations
in interfaceJavaHasAnnotations
- Returns:
- A
Collection
containing thisJavaPackage's
JavaAnnotations
.
-
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
-