EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

java.lang.Object
  extended by org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
      extended by org.eclipse.persistence.jaxb.javamodel.oxm.OXMJavaModelImpl
All Implemented Interfaces:
JavaModel

public class OXMJavaModelImpl
extends JavaModelImpl
implements JavaModel

INTERNAL:

Purpose: JavaModel implementation backed by a collection of MOXY's xmlmodel.JavaClasses. Used when bootstrapping a DynamicJAXBContext from XML Bindings.

Responsibilities:

See Also:
JavaModel
Since:
EclipseLink 2.2

Field Summary
 
Fields inherited from class org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
classLoader
 
Constructor Summary
OXMJavaModelImpl(java.lang.ClassLoader loader, JavaClass[] javaClasses)
          Construct a new instance of OXMJavaModelImpl.
 
Method Summary
 JavaClass getClass(java.lang.Class<?> jClass)
          Obtain the JavaClass given the corresponding Java Class.
 JavaClass getClass(java.lang.String className)
          Obtain the JavaClass given the corresponding Java Class' name.
 java.lang.ClassLoader getClassLoader()
          Returns this JavaModel's ClassLoader.
 org.eclipse.persistence.internal.jaxb.JaxbClassLoader getJaxbClassLoader()
          Returns this JavaModel's JaxbClassLoader, which should be the parent ClassLoader.
 
Methods inherited from class org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
getAnnotation, getAnnotationHelper, getCachedJavaClasses, setMetadataCompletePackageMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.persistence.jaxb.javamodel.JavaModel
getAnnotation
 

Constructor Detail

OXMJavaModelImpl

public OXMJavaModelImpl(java.lang.ClassLoader loader,
                        JavaClass[] javaClasses)
Construct a new instance of OXMJavaModelImpl.

Parameters:
loader - - the ClassLoader used to bootstrap the DynamicJAXBContext.
javaClasses - - an array of JavaClasses for which to generate mappings.
Method Detail

getClass

public JavaClass getClass(java.lang.Class<?> jClass)
Obtain the JavaClass given the corresponding Java Class.

Specified by:
getClass in interface JavaModel
Overrides:
getClass in class JavaModelImpl
Parameters:
jClass - - the Java Class to search for.
Returns:
the JavaClass corresponding to jClass.

getClass

public JavaClass getClass(java.lang.String className)
Obtain the JavaClass given the corresponding Java Class' name.

Specified by:
getClass in interface JavaModel
Overrides:
getClass in class JavaModelImpl
Parameters:
className - - the name of the Java Class to search for.
Returns:
the JavaClass corresponding to className.

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns this JavaModel's ClassLoader.

Specified by:
getClassLoader in interface JavaModel
Overrides:
getClassLoader in class JavaModelImpl
Returns:
the ClassLoader used by this JavaModel.

getJaxbClassLoader

public org.eclipse.persistence.internal.jaxb.JaxbClassLoader getJaxbClassLoader()
Returns this JavaModel's JaxbClassLoader, which should be the parent ClassLoader.

Returns:
the JaxbClassLoader used by this JavaModel.

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference