Class JavaPackageImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.reflection.JavaPackageImpl
-
- All Implemented Interfaces:
JavaHasAnnotations
,JavaPackage
public class JavaPackageImpl extends java.lang.Object implements JavaPackage
INTERNAL:Purpose:A wrapper class for a JDK Package. This implementation of the TopLink JAXB 2.0 Java model simply makes reflective calls on the underlying JDK object.
Responsibilities:
- Provide access to the underlying package's qualified name, annotations, etc.
- See Also:
JavaPackage
,Package
- Since:
- Oracle TopLink 11.1.1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Boolean
isMetadataComplete
protected JavaModelImpl
jModelImpl
protected java.lang.Package
jPkg
-
Constructor Summary
Constructors Constructor Description JavaPackageImpl(java.lang.Package javaPackage, JavaModelImpl javaModelImpl)
JavaPackageImpl(java.lang.Package javaPackage, JavaModelImpl javaModelImpl, java.lang.Boolean isMetadataComplete)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.AnnotatedElement
getAnnotatedElement()
JavaAnnotation
getAnnotation(JavaClass arg0)
Assumes JavaType is a JavaClassImpl instancejava.util.Collection
getAnnotations()
JavaAnnotation
getDeclaredAnnotation(JavaClass arg0)
java.util.Collection
getDeclaredAnnotations()
java.lang.String
getName()
java.lang.String
getQualifiedName()
-
-
-
Field Detail
-
jPkg
protected java.lang.Package jPkg
-
jModelImpl
protected JavaModelImpl jModelImpl
-
isMetadataComplete
protected java.lang.Boolean isMetadataComplete
-
-
Constructor Detail
-
JavaPackageImpl
public JavaPackageImpl(java.lang.Package javaPackage, JavaModelImpl javaModelImpl)
-
JavaPackageImpl
public JavaPackageImpl(java.lang.Package javaPackage, JavaModelImpl javaModelImpl, java.lang.Boolean isMetadataComplete)
-
-
Method Detail
-
getAnnotation
public JavaAnnotation getAnnotation(JavaClass arg0)
Assumes JavaType is a JavaClassImpl instance- Specified by:
getAnnotation
in interfaceJavaHasAnnotations
-
getAnnotations
public java.util.Collection getAnnotations()
- Specified by:
getAnnotations
in interfaceJavaHasAnnotations
-
getName
public java.lang.String getName()
-
getQualifiedName
public java.lang.String getQualifiedName()
- Specified by:
getQualifiedName
in interfaceJavaPackage
-
getAnnotatedElement
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
-
getDeclaredAnnotation
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
- Specified by:
getDeclaredAnnotation
in interfaceJavaHasAnnotations
-
getDeclaredAnnotations
public java.util.Collection getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interfaceJavaHasAnnotations
-
-