Class JavaPackageImpl
java.lang.Object
org.eclipse.persistence.jaxb.javamodel.reflection.JavaPackageImpl
- All Implemented Interfaces:
JavaHasAnnotations
,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:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJavaPackageImpl
(Package javaPackage, JavaModelImpl javaModelImpl) JavaPackageImpl
(Package javaPackage, JavaModelImpl javaModelImpl, Boolean isMetadataComplete) -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(JavaClass arg0) Assumes JavaType is a JavaClassImpl instancegetName()
-
Field Details
-
jPkg
-
jModelImpl
-
isMetadataComplete
-
-
Constructor Details
-
JavaPackageImpl
-
JavaPackageImpl
public JavaPackageImpl(Package javaPackage, JavaModelImpl javaModelImpl, Boolean isMetadataComplete)
-
-
Method Details
-
getAnnotation
Assumes JavaType is a JavaClassImpl instance- Specified by:
getAnnotation
in interfaceJavaHasAnnotations
-
getAnnotations
- Specified by:
getAnnotations
in interfaceJavaHasAnnotations
-
getName
-
getQualifiedName
- Specified by:
getQualifiedName
in interfaceJavaPackage
-
getAnnotatedElement
-
getDeclaredAnnotation
- Specified by:
getDeclaredAnnotation
in interfaceJavaHasAnnotations
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceJavaHasAnnotations
-