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:
JavaPackage
implementation wrapping XJC'sJPackage
. Used when bootstrapping aDynamicJAXBContext
from an XML Schema.Responsibilities:
- Provide
Package
information from the underlyingJPackage
.
- See Also:
JavaPackage
- Since:
- EclipseLink 2.1
-
-
Field Summary
Fields Modifier and Type Field Description protected com.sun.codemodel.JPackage
xjcPackage
-
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 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
.
-
-
-
Constructor Detail
-
XJCJavaPackageImpl
public XJCJavaPackageImpl(com.sun.codemodel.JPackage jPackage, DynamicClassLoader loader)
Construct a new instance ofXJCJavaPackageImpl
.- Parameters:
jPackage
- - the XJCJPackage
to be wrapped.loader
- - theClassLoader
used to bootstrap theDynamicJAXBContext
.
-
-
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:
- the
JavaAnnotation
represented byaClass
, if one exists, otherwise returnnull
.
-
getAnnotations
public java.util.Collection<JavaAnnotation> getAnnotations()
Return all of theAnnotations
for thisJavaPackage
.- Specified by:
getAnnotations
in interfaceJavaHasAnnotations
- Returns:
- A
Collection
containing thisJavaPackage's
JavaAnnotations
.
-
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
-
-