Class XJCJavaAnnotationImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.xjc.XJCJavaAnnotationImpl
-
- All Implemented Interfaces:
JavaAnnotation
public class XJCJavaAnnotationImpl extends Object implements JavaAnnotation
INTERNAL:Purpose:
JavaAnnotation
implementation wrapping XJC'sJAnnotationUse
. Used when bootstrapping aDynamicJAXBContext
from an XML Schema.Responsibilities:
- Provide
Annotation
information from the underlyingJAnnotationUse
.
- See Also:
JavaAnnotation
- Since:
- EclipseLink 2.1
-
-
Constructor Summary
Constructors Constructor Description XJCJavaAnnotationImpl(com.sun.codemodel.JAnnotationUse annotation, DynamicClassLoader loader)
Construct a new instance ofXJCJavaAnnotationImpl
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Object,Object>
getComponents()
Not supported.Annotation
getJavaAnnotation()
Return a JavaAnnotation
representation of thisJavaAnnotation
.Class<?>
getJavaAnnotationClass()
Return the JavaClass
of theAnnotation
represented by thisJavaAnnotation
.String
getName()
-
-
-
Constructor Detail
-
XJCJavaAnnotationImpl
public XJCJavaAnnotationImpl(com.sun.codemodel.JAnnotationUse annotation, DynamicClassLoader loader)
Construct a new instance ofXJCJavaAnnotationImpl
.- Parameters:
annotation
- - the XJCJAnnotationUse
to be wrapped.loader
- - theClassLoader
used to bootstrap theDynamicJAXBContext
.
-
-
Method Detail
-
getJavaAnnotation
public Annotation getJavaAnnotation()
Return a JavaAnnotation
representation of thisJavaAnnotation
.- Returns:
- a Java
Annotation
representation of thisJavaAnnotation
.
-
getJavaAnnotationClass
public Class<?> getJavaAnnotationClass()
Return the JavaClass
of theAnnotation
represented by thisJavaAnnotation
.- Returns:
- the Java
Class
of thisJavaAnnotation's
Annotation
.
-
getComponents
public Map<Object,Object> getComponents()
Not supported.- Specified by:
getComponents
in interfaceJavaAnnotation
-
getName
public String getName()
- Specified by:
getName
in interfaceJavaAnnotation
-
-