public class OXMJavaModelImpl extends JavaModelImpl implements JavaModel
Purpose: JavaModel
implementation backed by a collection of MOXY's
xmlmodel.JavaClasses
. Used when bootstrapping a DynamicJAXBContext
from XML Bindings.
Responsibilities:
JavaClass
based on a Class
or Class
name.JavaModel
classLoader
Constructor and Description |
---|
OXMJavaModelImpl(java.lang.ClassLoader loader,
JavaClass[] javaClasses)
Construct a new instance of
OXMJavaModelImpl . |
Modifier and Type | Method and Description |
---|---|
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 . |
getAnnotation, getAnnotationHelper, getCachedJavaClasses, hasXmlBindings, setHasXmlBindings, setMetadataCompletePackageMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation
public OXMJavaModelImpl(java.lang.ClassLoader loader, JavaClass[] javaClasses)
OXMJavaModelImpl
.loader
- - the ClassLoader
used to bootstrap the DynamicJAXBContext
.javaClasses
- - an array of JavaClasses
for which to generate mappings.public JavaClass getClass(java.lang.Class<?> jClass)
JavaClass
given the corresponding Java Class
.getClass
in interface JavaModel
getClass
in class JavaModelImpl
jClass
- - the Java Class
to search for.JavaClass
corresponding to jClass
.public JavaClass getClass(java.lang.String className)
JavaClass
given the corresponding Java Class'
name.getClass
in interface JavaModel
getClass
in class JavaModelImpl
className
- - the name of the Java Class
to search for.JavaClass
corresponding to className
.public java.lang.ClassLoader getClassLoader()
JavaModel's
ClassLoader
.getClassLoader
in interface JavaModel
getClassLoader
in class JavaModelImpl
ClassLoader
used by this JavaModel
.public org.eclipse.persistence.internal.jaxb.JaxbClassLoader getJaxbClassLoader()
JavaModel's
JaxbClassLoader
, which
should be the parent ClassLoader
.JaxbClassLoader
used by this JavaModel
.