Class 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 Detail

      • classLoader

        protected java.lang.ClassLoader classLoader
    • Constructor Detail

      • JavaModelImpl

        public JavaModelImpl​(java.lang.ClassLoader classLoader)
      • JavaModelImpl

        public JavaModelImpl​(java.lang.ClassLoader classLoader,
                             AnnotationHelper annotationHelper)
    • Method Detail

      • getClassLoader

        public java.lang.ClassLoader getClassLoader()
        Specified by:
        getClassLoader in interface JavaModel
      • 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)