Class JavaModelImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.reflection.JavaModelImpl
-
- All Implemented Interfaces:
JavaModel
- Direct Known Subclasses:
OXMJavaModelImpl
public class JavaModelImpl extends java.lang.Object implements JavaModel
INTERNAL:Purpose:The JavaModel is the central access point to the TopLink JAXB 2.0 Java model implementation's source/class files. A JavaModel has an underlying source/classpath that defines its search path.
Responsibilities:
- Return a JavaClass based on a Class or Class name
- Return a JDK Annotation for a given JavaAnnotation
- See Also:
JavaModel
- Since:
- Oracle TopLink 11.1.1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ClassLoader
classLoader
-
Constructor Summary
Constructors Constructor Description JavaModelImpl(java.lang.ClassLoader classLoader)
JavaModelImpl(java.lang.ClassLoader classLoader, AnnotationHelper annotationHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.annotation.Annotation
getAnnotation(JavaAnnotation janno, java.lang.Class<?> jClass)
AnnotationHelper
getAnnotationHelper()
java.util.Map<java.lang.String,JavaClassImpl>
getCachedJavaClasses()
JavaClass
getClass(java.lang.Class<?> jClass)
JavaClass
getClass(java.lang.String className)
java.lang.ClassLoader
getClassLoader()
boolean
hasXmlBindings()
void
setHasXmlBindings(boolean hasXmlBindings)
void
setMetadataCompletePackageMap(java.util.Map<java.lang.String,java.lang.Boolean> metadataCompletePackageMap)
Set the Map of package names to metadata complete indicators for this JavaModelInput.
-
-
-
Constructor Detail
-
JavaModelImpl
public JavaModelImpl(java.lang.ClassLoader classLoader)
-
JavaModelImpl
public JavaModelImpl(java.lang.ClassLoader classLoader, AnnotationHelper annotationHelper)
-
-
Method Detail
-
getClass
public JavaClass getClass(java.lang.Class<?> jClass)
-
getClass
public JavaClass getClass(java.lang.String className)
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfaceJavaModel
-
getAnnotation
public java.lang.annotation.Annotation getAnnotation(JavaAnnotation janno, java.lang.Class<?> jClass)
- Specified by:
getAnnotation
in interfaceJavaModel
-
getAnnotationHelper
public AnnotationHelper getAnnotationHelper()
-
setMetadataCompletePackageMap
public void setMetadataCompletePackageMap(java.util.Map<java.lang.String,java.lang.Boolean> metadataCompletePackageMap)
Set the Map of package names to metadata complete indicators for this JavaModelInput. If a given package has no entry in this map it is assumed to be metadata incomplete.- Parameters:
metadataCompletePackageMap
-
-
getCachedJavaClasses
public java.util.Map<java.lang.String,JavaClassImpl> getCachedJavaClasses()
-
hasXmlBindings
public boolean hasXmlBindings()
-
setHasXmlBindings
public void setHasXmlBindings(boolean hasXmlBindings)
-
-