Class XJCJavaPackageImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.xjc.XJCJavaPackageImpl
-
- All Implemented Interfaces:
JavaHasAnnotations,JavaPackage
public class XJCJavaPackageImpl extends java.lang.Object implements JavaPackage
INTERNAL:Purpose:
JavaPackageimplementation wrapping XJC'sJPackage. Used when bootstrapping aDynamicJAXBContextfrom an XML Schema.Responsibilities:
- Provide
Packageinformation from the underlyingJPackage.
- See Also:
JavaPackage- Since:
- EclipseLink 2.1
-
-
Field Summary
Fields Modifier and Type Field Description protected com.sun.codemodel.JPackagexjcPackage
-
Constructor Summary
Constructors Constructor Description XJCJavaPackageImpl(com.sun.codemodel.JPackage jPackage, DynamicClassLoader loader)Construct a new instance ofXJCJavaPackageImpl.
-
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.
-
-
-
Constructor Detail
-
XJCJavaPackageImpl
public XJCJavaPackageImpl(com.sun.codemodel.JPackage jPackage, DynamicClassLoader loader)Construct a new instance ofXJCJavaPackageImpl.- Parameters:
jPackage- - the XJCJPackageto be wrapped.loader- - theClassLoaderused to bootstrap theDynamicJAXBContext.
-
-
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:
- the
JavaAnnotationrepresented byaClass, if one exists, otherwise returnnull.
-
getAnnotations
public java.util.Collection<JavaAnnotation> getAnnotations()
Return all of theAnnotationsfor thisJavaPackage.- Specified by:
getAnnotationsin interfaceJavaHasAnnotations- Returns:
- A
Collectioncontaining thisJavaPackage'sJavaAnnotations.
-
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
-
-