EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jaxb.javamodel.oxm
Class OXMJavaPackageImpl

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

See Also:
JavaPackage
Since:
EclipseLink 2.2

Field Summary
protected  java.lang.String packageName
           
 
Constructor Summary
OXMJavaPackageImpl(java.lang.String aPackage)
          Construct a new instance of OXMJavaPackageImpl.
 
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

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.

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