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:
JavaPackageimplementation used when bootstrapping aDynamicJAXBContextfrom XML Bindings.Responsibilities:
- Provide Package information to the
JavaModel.
- Since:
- EclipseLink 2.2
- See Also:
JavaPackage
-
-
Field Summary
Fields Modifier and Type Field Description protected StringpackageName
-
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 JavaAnnotationgetAnnotation(JavaClass aClass)If thisJavaPackageis annotated with anAnnotationmatchingaClass, return itsJavaAnnotationrepresentation.Collection<JavaAnnotation>getAnnotations()Return all of theAnnotationsfor thisJavaPackage.JavaAnnotationgetDeclaredAnnotation(JavaClass arg0)Not supported.Collection<JavaAnnotation>getDeclaredAnnotations()Not supported.StringgetName()Returns the name of thisJavaPackage.StringgetQualifiedName()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 thisJavaPackageis annotated with anAnnotationmatchingaClass, return itsJavaAnnotationrepresentation.- Specified by:
getAnnotationin interfaceJavaHasAnnotations- Parameters:
aClass- aJavaClassrepresenting theAnnotationto look for.- Returns:
- always returns
nullasJavaTypesdo not haveAnnotations.
-
getAnnotations
public Collection<JavaAnnotation> getAnnotations()
Return all of theAnnotationsfor thisJavaPackage.- Specified by:
getAnnotationsin interfaceJavaHasAnnotations- Returns:
- always returns
nullasJavaTypesdo not haveAnnotations.
-
getName
public String getName()
Returns the name of thisJavaPackage.- Returns:
- the
Stringname of thisJavaPackage.
-
getQualifiedName
public String getQualifiedName()
Returns the fully-qualified name of thisJavaPackage.- Specified by:
getQualifiedNamein interfaceJavaPackage- Returns:
- the
Stringname of thisJavaPackage.
-
getDeclaredAnnotation
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
Not supported.- Specified by:
getDeclaredAnnotationin interfaceJavaHasAnnotations
-
getDeclaredAnnotations
public Collection<JavaAnnotation> getDeclaredAnnotations()
Not supported.- Specified by:
getDeclaredAnnotationsin interfaceJavaHasAnnotations
-
-