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:
JavaAnnotationimplementation wrapping XJC'sJAnnotationUse. Used when bootstrapping aDynamicJAXBContextfrom an XML Schema.Responsibilities:
- Provide
Annotationinformation from the underlyingJAnnotationUse.
- Since:
- EclipseLink 2.1
- See Also:
JavaAnnotation
-
-
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.AnnotationgetJavaAnnotation()Return a JavaAnnotationrepresentation of thisJavaAnnotation.Class<?>getJavaAnnotationClass()Return the JavaClassof theAnnotationrepresented by thisJavaAnnotation.StringgetName()
-
-
-
Constructor Detail
-
XJCJavaAnnotationImpl
public XJCJavaAnnotationImpl(com.sun.codemodel.JAnnotationUse annotation, DynamicClassLoader loader)Construct a new instance ofXJCJavaAnnotationImpl.- Parameters:
annotation- - the XJCJAnnotationUseto be wrapped.loader- - theClassLoaderused to bootstrap theDynamicJAXBContext.
-
-
Method Detail
-
getJavaAnnotation
public Annotation getJavaAnnotation()
Return a JavaAnnotationrepresentation of thisJavaAnnotation.- Returns:
- a Java
Annotationrepresentation of thisJavaAnnotation.
-
getJavaAnnotationClass
public Class<?> getJavaAnnotationClass()
Return the JavaClassof theAnnotationrepresented by thisJavaAnnotation.- Returns:
- the Java
Classof thisJavaAnnotation'sAnnotation.
-
getComponents
public Map<Object,Object> getComponents()
Not supported.- Specified by:
getComponentsin interfaceJavaAnnotation
-
getName
public String getName()
- Specified by:
getNamein interfaceJavaAnnotation
-
-