|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jaxb.javamodel.xjc.XJCJavaModelImpl
public class XJCJavaModelImpl
INTERNAL:
Purpose: JavaModel
implementation wrapping XJC's JCodeModel
. Used when
bootstrapping a DynamicJAXBContext
from an XML Schema.
Responsibilities:
JavaClass
based on a Class
or Class
name.Annotation
for a given JavaAnnotation
.
JavaModel
Constructor Summary | |
---|---|
XJCJavaModelImpl(JCodeModel codeModel,
DynamicClassLoader loader)
Construct a new instance of XJCJavaModelImpl . |
Method Summary | |
---|---|
java.lang.annotation.Annotation |
getAnnotation(JavaAnnotation annotation,
java.lang.Class<?> jClass)
Return a Java Annotation representation of the given JavaAnnotation . |
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 . |
java.util.Map<java.lang.String,JavaClass> |
getJavaModelClasses()
Returns a Map of this JavaModel's JavaClasses , keyed on class name. |
void |
setJavaModelClasses(java.util.Map<java.lang.String,JavaClass> javaModelClasses)
Sets the Map of JavaClasses for this JavaModel's , keyed on class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XJCJavaModelImpl(JCodeModel codeModel, DynamicClassLoader loader)
XJCJavaModelImpl
.
codeModel
- - the XJC JCodeModel
to be wrapped.loader
- - the ClassLoader
used to bootstrap the DynamicJAXBContext
.Method Detail |
---|
public JavaClass getClass(java.lang.Class<?> jClass)
JavaClass
given the corresponding Java Class
.
getClass
in interface JavaModel
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
className
- - the name of the Java Class
to search for.
JavaClass
corresponding to className
.public java.lang.annotation.Annotation getAnnotation(JavaAnnotation annotation, java.lang.Class<?> jClass)
Annotation
representation of the given JavaAnnotation
.
getAnnotation
in interface JavaModel
annotation
- - the JavaAnnotation
to be converted.jClass
- - the Java Class
this annotation belogs to.
Annotation
representation of the given JavaAnnotation
.public java.util.Map<java.lang.String,JavaClass> getJavaModelClasses()
Map
of this JavaModel's
JavaClasses
, keyed on class name.
JavaModel's
Map
of JavaClasses
.public void setJavaModelClasses(java.util.Map<java.lang.String,JavaClass> javaModelClasses)
Map
of JavaClasses
for this JavaModel's
, keyed on class name.
javaModelClasses
- - a Map
of JavaClasses
, keyed on class name.public java.lang.ClassLoader getClassLoader()
JavaModel's
ClassLoader
.
getClassLoader
in interface JavaModel
ClassLoader
used by this JavaModel
.
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |