Class XJCJavaPackageImpl

  • All Implemented Interfaces:
    JavaHasAnnotations, JavaPackage

    public class XJCJavaPackageImpl
    extends java.lang.Object
    implements JavaPackage
    INTERNAL:

    Purpose: JavaPackage implementation wrapping XJC's JPackage. Used when bootstrapping a DynamicJAXBContext from an XML Schema.

    Responsibilities:

    • Provide Package information from the underlying JPackage.
    See Also:
    JavaPackage
    Since:
    EclipseLink 2.1
    • Field Detail

      • xjcPackage

        protected com.sun.codemodel.JPackage xjcPackage
    • Constructor Detail

      • XJCJavaPackageImpl

        public XJCJavaPackageImpl​(com.sun.codemodel.JPackage jPackage,
                                  DynamicClassLoader loader)
        Construct a new instance of XJCJavaPackageImpl.
        Parameters:
        jPackage - - the XJC JPackage to be wrapped.
        loader - - the ClassLoader used to bootstrap the DynamicJAXBContext.
    • Method Detail

      • getAnnotation

        public JavaAnnotation getAnnotation​(JavaClass aClass)
        If this JavaPackage is annotated with an Annotation matching aClass, return its JavaAnnotation representation.
        Specified by:
        getAnnotation in interface JavaHasAnnotations
        Parameters:
        aClass - a JavaClass representing the Annotation to look for.
        Returns:
        the JavaAnnotation represented by aClass, if one exists, otherwise return null.
      • getAnnotations

        public java.util.Collection<JavaAnnotation> getAnnotations()
        Return all of the Annotations for this JavaPackage.
        Specified by:
        getAnnotations in interface JavaHasAnnotations
        Returns:
        A Collection containing this JavaPackage's JavaAnnotations.
      • getName

        public java.lang.String getName()
        Returns the name of this JavaPackage.
        Returns:
        the String name of this JavaPackage.
      • getQualifiedName

        public java.lang.String getQualifiedName()
        Returns the fully-qualified name of this JavaPackage.
        Specified by:
        getQualifiedName in interface JavaPackage
        Returns:
        the String name of this JavaPackage.