EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jaxb.javamodel.xjc
Class XJCJavaPackageImpl

java.lang.Object
  extended by org.eclipse.persistence.jaxb.javamodel.xjc.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:

See Also:
JavaPackage
Since:
EclipseLink 2.1

Field Summary
protected  JPackage xjcPackage
           
 
Constructor Summary
XJCJavaPackageImpl(JPackage jPackage, DynamicClassLoader loader)
          Construct a new instance of XJCJavaPackageImpl.
 
Method Summary
 JavaAnnotation getAnnotation(JavaClass aClass)
          If this JavaPackage is annotated with an Annotation matching aClass, return its JavaAnnotation representation.
 java.util.Collection<JavaAnnotation> getAnnotations()
          Return all of the Annotations for this JavaPackage.
 JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
          Not supported.
 java.util.Collection<JavaAnnotation> getDeclaredAnnotations()
          Not supported.
 java.lang.String getName()
          Returns the name of this JavaPackage.
 java.lang.String getQualifiedName()
          Returns the fully-qualified name of this JavaPackage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xjcPackage

protected JPackage xjcPackage
Constructor Detail

XJCJavaPackageImpl

public XJCJavaPackageImpl(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.

getDeclaredAnnotation

public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
Not supported.

Specified by:
getDeclaredAnnotation in interface JavaHasAnnotations

getDeclaredAnnotations

public java.util.Collection<JavaAnnotation> getDeclaredAnnotations()
Not supported.

Specified by:
getDeclaredAnnotations in interface JavaHasAnnotations

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference