Class OXMJavaPackageImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.oxm.OXMJavaPackageImpl
-
- All Implemented Interfaces:
JavaHasAnnotations
,JavaPackage
public class OXMJavaPackageImpl extends Object implements JavaPackage
INTERNAL:Purpose:
JavaPackage
implementation used when bootstrapping aDynamicJAXBContext
from XML Bindings.Responsibilities:
- Provide Package information to the
JavaModel
.
- See Also:
JavaPackage
- Since:
- EclipseLink 2.2
-
-
Field Summary
Fields Modifier and Type Field Description protected String
packageName
-
Constructor Summary
Constructors Constructor Description OXMJavaPackageImpl(String aPackage)
Construct a new instance ofOXMJavaPackageImpl
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaAnnotation
getAnnotation(JavaClass aClass)
If thisJavaPackage
is annotated with anAnnotation
matchingaClass
, return itsJavaAnnotation
representation.Collection<JavaAnnotation>
getAnnotations()
Return all of theAnnotations
for thisJavaPackage
.JavaAnnotation
getDeclaredAnnotation(JavaClass arg0)
Not supported.Collection<JavaAnnotation>
getDeclaredAnnotations()
Not supported.String
getName()
Returns the name of thisJavaPackage
.String
getQualifiedName()
Returns the fully-qualified name of thisJavaPackage
.
-
-
-
Field Detail
-
packageName
protected String packageName
-
-
Constructor Detail
-
OXMJavaPackageImpl
public OXMJavaPackageImpl(String aPackage)
Construct a new instance ofOXMJavaPackageImpl
.- Parameters:
aPackage
- - the name of thisJavaPackage
.
-
-
Method Detail
-
getAnnotation
public JavaAnnotation getAnnotation(JavaClass aClass)
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
public Collection<JavaAnnotation> getAnnotations()
Return all of theAnnotations
for thisJavaPackage
.- Specified by:
getAnnotations
in interfaceJavaHasAnnotations
- Returns:
- always returns
null
asJavaTypes
do not haveAnnotations
.
-
getName
public String getName()
Returns the name of thisJavaPackage
.- Returns:
- the
String
name of thisJavaPackage
.
-
getQualifiedName
public String getQualifiedName()
Returns the fully-qualified name of thisJavaPackage
.- Specified by:
getQualifiedName
in interfaceJavaPackage
- Returns:
- the
String
name of thisJavaPackage
.
-
getDeclaredAnnotation
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
Not supported.- Specified by:
getDeclaredAnnotation
in interfaceJavaHasAnnotations
-
getDeclaredAnnotations
public Collection<JavaAnnotation> getDeclaredAnnotations()
Not supported.- Specified by:
getDeclaredAnnotations
in interfaceJavaHasAnnotations
-
-