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's JAnnotationUse. Used when bootstrapping a DynamicJAXBContext from an XML Schema.

Responsibilities:

  • Provide Annotation information from the underlying JAnnotationUse.
Since:
EclipseLink 2.1
See Also:
  • Constructor Details

    • XJCJavaAnnotationImpl

      public XJCJavaAnnotationImpl(com.sun.codemodel.JAnnotationUse annotation, DynamicClassLoader loader)
      Construct a new instance of XJCJavaAnnotationImpl.
      Parameters:
      annotation - - the XJC JAnnotationUse to be wrapped.
      loader - - the ClassLoader used to bootstrap the DynamicJAXBContext.
  • Method Details

    • getJavaAnnotation

      public Annotation getJavaAnnotation()
      Return a Java Annotation representation of this JavaAnnotation.
      Returns:
      a Java Annotation representation of this JavaAnnotation.
    • getJavaAnnotationClass

      public Class<?> getJavaAnnotationClass()
      Return the Java Class of the Annotation represented by this JavaAnnotation.
      Returns:
      the Java Class of this JavaAnnotation's Annotation.
    • getComponents

      public Map<Object,Object> getComponents()
      Not supported.
      Specified by:
      getComponents in interface JavaAnnotation
    • getName

      public String getName()
      Specified by:
      getName in interface JavaAnnotation