public class XJCJavaPackageImpl extends java.lang.Object implements JavaPackage
Purpose: JavaPackage implementation wrapping XJC's JPackage. Used when
bootstrapping a DynamicJAXBContext from an XML Schema.
Responsibilities:
Package information from the underlying JPackage.JavaPackage| Modifier and Type | Field and Description |
|---|---|
protected JPackage |
xjcPackage |
| Constructor and Description |
|---|
XJCJavaPackageImpl(JPackage jPackage,
DynamicClassLoader loader)
Construct a new instance of
XJCJavaPackageImpl. |
| Modifier and Type | Method and Description |
|---|---|
JavaAnnotation |
getAnnotation(JavaClass aClass)
If this
JavaPackage is annotated with an Annotation matching aClass,
return its JavaAnnotation representation. |
java.util.Collection<JavaAnnotation> |
getAnnotations()
Return all of the
Annotations for this JavaPackage. |
JavaAnnotation |
getDeclaredAnnotation(JavaClass arg0)
Not supported.
|
java.util.Collection<JavaAnnotation> |
getDeclaredAnnotations()
Not supported.
|
java.lang.String |
getName()
Returns the name of this
JavaPackage. |
java.lang.String |
getQualifiedName()
Returns the fully-qualified name of this
JavaPackage. |
public XJCJavaPackageImpl(JPackage jPackage,
DynamicClassLoader loader)
XJCJavaPackageImpl.jPackage - - the XJC JPackage to be wrapped.loader - - the ClassLoader used to bootstrap the DynamicJAXBContext.public JavaAnnotation getAnnotation(JavaClass aClass)
JavaPackage is annotated with an Annotation matching aClass,
return its JavaAnnotation representation.getAnnotation in interface JavaHasAnnotationsaClass - a JavaClass representing the Annotation to look for.JavaAnnotation represented by aClass, if one exists, otherwise return null.public java.util.Collection<JavaAnnotation> getAnnotations()
Annotations for this JavaPackage.getAnnotations in interface JavaHasAnnotationsCollection containing this JavaPackage's JavaAnnotations.public java.lang.String getName()
JavaPackage.String name of this JavaPackage.public java.lang.String getQualifiedName()
JavaPackage.getQualifiedName in interface JavaPackageString name of this JavaPackage.public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
getDeclaredAnnotation in interface JavaHasAnnotationspublic java.util.Collection<JavaAnnotation> getDeclaredAnnotations()
getDeclaredAnnotations in interface JavaHasAnnotations