public class OXMJavaPackageImpl extends java.lang.Object implements JavaPackage
Purpose: JavaPackage
implementation used when bootstrapping
a DynamicJAXBContext
from XML Bindings.
Responsibilities:
JavaModel
.JavaPackage
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
packageName |
Constructor and Description |
---|
OXMJavaPackageImpl(java.lang.String aPackage)
Construct a new instance of
OXMJavaPackageImpl . |
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 OXMJavaPackageImpl(java.lang.String aPackage)
OXMJavaPackageImpl
.aPackage
- - the name of this JavaPackage
.public JavaAnnotation getAnnotation(JavaClass aClass)
JavaPackage
is annotated with an Annotation
matching aClass
,
return its JavaAnnotation
representation.getAnnotation
in interface JavaHasAnnotations
aClass
- a JavaClass
representing the Annotation
to look for.null
as JavaTypes
do not have Annotations
.public java.util.Collection<JavaAnnotation> getAnnotations()
Annotations
for this JavaPackage
.getAnnotations
in interface JavaHasAnnotations
null
as JavaTypes
do not have Annotations
.public java.lang.String getName()
JavaPackage
.String
name of this JavaPackage
.public java.lang.String getQualifiedName()
JavaPackage
.getQualifiedName
in interface JavaPackage
String
name of this JavaPackage
.public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
getDeclaredAnnotation
in interface JavaHasAnnotations
public java.util.Collection<JavaAnnotation> getDeclaredAnnotations()
getDeclaredAnnotations
in interface JavaHasAnnotations