Class OXMJavaModelImpl
java.lang.Object
org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
org.eclipse.persistence.jaxb.javamodel.oxm.OXMJavaModelImpl
- All Implemented Interfaces:
JavaModel
INTERNAL:
Purpose: JavaModel
implementation backed by a collection of MOXY's
xmlmodel.JavaClasses
. Used when bootstrapping a DynamicJAXBContext
from XML Bindings.
Responsibilities:
- Return a
JavaClass
based on aClass
orClass
name.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
classLoader
-
Constructor Summary
ConstructorDescriptionOXMJavaModelImpl
(ClassLoader loader, JavaClass[] javaClasses) Construct a new instance ofOXMJavaModelImpl
. -
Method Summary
Modifier and TypeMethodDescriptionObtain theJavaClass
given the corresponding JavaClass
.Obtain theJavaClass
given the corresponding JavaClass'
name.Returns thisJavaModel's
ClassLoader
.org.eclipse.persistence.internal.jaxb.JaxbClassLoader
Returns thisJavaModel's
JaxbClassLoader
, which should be the parentClassLoader
.Methods inherited from class org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
getAnnotation, getAnnotationHelper, getCachedJavaClasses, hasXmlBindings, setHasXmlBindings, 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 Details
-
OXMJavaModelImpl
Construct a new instance ofOXMJavaModelImpl
.- Parameters:
loader
- - theClassLoader
used to bootstrap theDynamicJAXBContext
.javaClasses
- - an array ofJavaClasses
for which to generate mappings.
-
-
Method Details
-
getClass
Obtain theJavaClass
given the corresponding JavaClass
.- Specified by:
getClass
in interfaceJavaModel
- Overrides:
getClass
in classJavaModelImpl
- Parameters:
jClass
- - the JavaClass
to search for.- Returns:
- the
JavaClass
corresponding tojClass
.
-
getClass
Obtain theJavaClass
given the corresponding JavaClass'
name.- Specified by:
getClass
in interfaceJavaModel
- Overrides:
getClass
in classJavaModelImpl
- Parameters:
className
- - the name of the JavaClass
to search for.- Returns:
- the
JavaClass
corresponding toclassName
.
-
getClassLoader
Returns thisJavaModel's
ClassLoader
.- Specified by:
getClassLoader
in interfaceJavaModel
- Overrides:
getClassLoader
in classJavaModelImpl
- Returns:
- the
ClassLoader
used by thisJavaModel
.
-
getJaxbClassLoader
public org.eclipse.persistence.internal.jaxb.JaxbClassLoader getJaxbClassLoader()Returns thisJavaModel's
JaxbClassLoader
, which should be the parentClassLoader
.- Returns:
- the
JaxbClassLoader
used by thisJavaModel
.
-