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:
JavaPackageimplementation used when bootstrapping aDynamicJAXBContextfrom 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.StringpackageName
-
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 JavaAnnotationgetAnnotation(JavaClass aClass)If thisJavaPackageis annotated with anAnnotationmatchingaClass, return itsJavaAnnotationrepresentation.java.util.Collection<JavaAnnotation>getAnnotations()Return all of theAnnotationsfor thisJavaPackage.JavaAnnotationgetDeclaredAnnotation(JavaClass arg0)Not supported.java.util.Collection<JavaAnnotation>getDeclaredAnnotations()Not supported.java.lang.StringgetName()Returns the name of thisJavaPackage.java.lang.StringgetQualifiedName()Returns the fully-qualified 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 java.util.Collection<JavaAnnotation> getAnnotations()
Return all of theAnnotationsfor thisJavaPackage.- Specified by:
getAnnotationsin interfaceJavaHasAnnotations- Returns:
- always returns
nullasJavaTypesdo not haveAnnotations.
-
getName
public java.lang.String getName()
Returns the name of thisJavaPackage.- Returns:
- the
Stringname of thisJavaPackage.
-
getQualifiedName
public java.lang.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 java.util.Collection<JavaAnnotation> getDeclaredAnnotations()
Not supported.- Specified by:
getDeclaredAnnotationsin interfaceJavaHasAnnotations
-
-