Class OXMJavaPackageImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.oxm.OXMJavaPackageImpl
-
- All Implemented Interfaces:
JavaHasAnnotations
,JavaPackage
public class OXMJavaPackageImpl extends java.lang.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 java.lang.String
packageName
-
Constructor Summary
Constructors Constructor Description OXMJavaPackageImpl(java.lang.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.java.util.Collection<JavaAnnotation>
getAnnotations()
Return all of theAnnotations
for thisJavaPackage
.JavaAnnotation
getDeclaredAnnotation(JavaClass arg0)
Not supported.java.util.Collection<JavaAnnotation>
getDeclaredAnnotations()
Not supported.java.lang.String
getName()
Returns the name of thisJavaPackage
.java.lang.String
getQualifiedName()
Returns the fully-qualified 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 java.util.Collection<JavaAnnotation> getAnnotations()
Return all of theAnnotations
for thisJavaPackage
.- Specified by:
getAnnotations
in interfaceJavaHasAnnotations
- Returns:
- always returns
null
asJavaTypes
do not haveAnnotations
.
-
getName
public java.lang.String getName()
Returns the name of thisJavaPackage
.- Returns:
- the
String
name of thisJavaPackage
.
-
getQualifiedName
public java.lang.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 java.util.Collection<JavaAnnotation> getDeclaredAnnotations()
Not supported.- Specified by:
getDeclaredAnnotations
in interfaceJavaHasAnnotations
-
-