Class OXMJavaPackageImpl

  • All Implemented Interfaces:
    JavaHasAnnotations, JavaPackage

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

    Purpose: JavaPackage implementation used when bootstrapping a DynamicJAXBContext from XML Bindings.

    Responsibilities:

    • Provide Package information to the JavaModel.
    See Also:
    JavaPackage
    Since:
    EclipseLink 2.2
    • Field Detail

      • packageName

        protected java.lang.String packageName
    • Constructor Detail

      • OXMJavaPackageImpl

        public OXMJavaPackageImpl​(java.lang.String aPackage)
        Construct a new instance of OXMJavaPackageImpl.
        Parameters:
        aPackage - - the name of this JavaPackage.
    • 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:
        always returns null as JavaTypes do not have Annotations.
      • getAnnotations

        public java.util.Collection<JavaAnnotation> getAnnotations()
        Return all of the Annotations for this JavaPackage.
        Specified by:
        getAnnotations in interface JavaHasAnnotations
        Returns:
        always returns null as JavaTypes do not have Annotations.
      • 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.