public class JavaPackageImpl extends java.lang.Object implements JavaPackage
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:
JavaPackage
, Package
Constructor and Description |
---|
JavaPackageImpl(java.lang.Package javaPackage, JavaModelImpl javaModelImpl) |
JavaPackageImpl(java.lang.Package javaPackage, JavaModelImpl javaModelImpl, java.lang.Boolean isMetadataComplete) |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.AnnotatedElement |
getAnnotatedElement() |
JavaAnnotation |
getAnnotation(JavaClass arg0)
Assumes JavaType is a JavaClassImpl instance
|
java.util.Collection |
getAnnotations() |
JavaAnnotation |
getDeclaredAnnotation(JavaClass arg0) |
java.util.Collection |
getDeclaredAnnotations() |
java.lang.String |
getName() |
java.lang.String |
getQualifiedName() |
public JavaPackageImpl(java.lang.Package javaPackage, JavaModelImpl javaModelImpl)
public JavaPackageImpl(java.lang.Package javaPackage, JavaModelImpl javaModelImpl, java.lang.Boolean isMetadataComplete)
public JavaAnnotation getAnnotation(JavaClass arg0)
getAnnotation
in interface JavaHasAnnotations
public java.util.Collection getAnnotations()
getAnnotations
in interface JavaHasAnnotations
public java.lang.String getName()
public java.lang.String getQualifiedName()
getQualifiedName
in interface JavaPackage
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
getDeclaredAnnotation
in interface JavaHasAnnotations
public java.util.Collection getDeclaredAnnotations()
getDeclaredAnnotations
in interface JavaHasAnnotations