|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.jaxb.compiler.CompilerHelper
public class CompilerHelper
Helper class for code that needs to be shared between AnnotationsProcessor, MappingsGenerator, SchemaGenerator
Field Summary | |
---|---|
private static java.lang.String |
METADATA_MODEL_PACKAGE |
private static JAXBContext |
xmlBindingsModelContext |
Constructor Summary | |
---|---|
CompilerHelper() |
Method Summary | |
---|---|
static void |
addClassToClassLoader(JavaClass cls, java.lang.ClassLoader loader) |
private static boolean |
areTypesEqual(java.lang.reflect.Type type, java.lang.reflect.Type type2) Return true if the Types are equal. |
private static boolean |
generatesSameComplexType(TypeMappingInfo tmi1, TypeMappingInfo tmi2, java.lang.ClassLoader loader) Return true if the two TypeMappingInfoObjects should generate the same complex type in the XSD |
private static java.lang.reflect.Type |
getActualArgumentType(java.lang.reflect.Type argument) |
(package private) static java.lang.reflect.Type |
getActualType(TypeMappingInfo tmi, XmlElement element) The actual type accounts for adapter classes or xmlelemnt types specified in either an annotation or an XML override |
(package private) static java.lang.Class |
getExisitingGeneratedClass(TypeMappingInfo tmi, java.util.Map<TypeMappingInfo,java.lang.Class> typeMappingInfoToGeneratedClasses, java.util.Map<TypeMappingInfo,java.lang.Class> typeMappingInfoToAdapterClasses, java.lang.ClassLoader loader) If 2 TypeMappingInfo objects would generate the same generated class (and therefore complex type) then return the existing class otherwise return null. |
static JavaClass |
getNextMappedSuperClass(JavaClass cls, java.util.HashMap<java.lang.String,TypeInfo> typeInfo, Helper helper) |
(package private) static java.lang.Class |
getTypeFromAdapterClass(java.lang.Class adapterClass) If adapter class is null return null If there is a marshal method that returns something other than Object on the adapter class return the return type of that method Otherwise return Object.class |
static JAXBContext |
getXmlBindingsModelContext() The method will load the eclipselink metadata model and return the corresponding JAXBContext |
(package private) static XmlElement |
getXmlElement(org.w3c.dom.Element xmlElementNode, java.lang.ClassLoader classLoader) Convenience method for creating an XmlElement object based on a given Element. |
private static boolean |
isCollectionType(java.lang.reflect.Type theType) Return true if the type is a Collection, List or Set |
private static boolean |
isXmlList(TypeMappingInfo tmi, XmlElement element) Return if this TypeMappingInfo has an XmlList annotation or is specified to be an xmlList in an XMLElement override |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static JAXBContext xmlBindingsModelContext
private static final java.lang.String METADATA_MODEL_PACKAGE
Constructor Detail |
---|
public CompilerHelper()
Method Detail |
---|
static java.lang.Class getExisitingGeneratedClass(TypeMappingInfo tmi, java.util.Map<TypeMappingInfo,java.lang.Class> typeMappingInfoToGeneratedClasses, java.util.Map<TypeMappingInfo,java.lang.Class> typeMappingInfoToAdapterClasses, java.lang.ClassLoader loader)
private static boolean generatesSameComplexType(TypeMappingInfo tmi1, TypeMappingInfo tmi2, java.lang.ClassLoader loader)
private static boolean isXmlList(TypeMappingInfo tmi, XmlElement element)
private static boolean areTypesEqual(java.lang.reflect.Type type, java.lang.reflect.Type type2)
private static java.lang.reflect.Type getActualArgumentType(java.lang.reflect.Type argument)
static XmlElement getXmlElement(org.w3c.dom.Element xmlElementNode, java.lang.ClassLoader classLoader)
xmlElementNode
-classLoader
-static java.lang.Class getTypeFromAdapterClass(java.lang.Class adapterClass)
private static boolean isCollectionType(java.lang.reflect.Type theType)
static java.lang.reflect.Type getActualType(TypeMappingInfo tmi, XmlElement element)
public static JAXBContext getXmlBindingsModelContext()
public static JavaClass getNextMappedSuperClass(JavaClass cls, java.util.HashMap<java.lang.String,TypeInfo> typeInfo, Helper helper)
public static void addClassToClassLoader(JavaClass cls, java.lang.ClassLoader loader)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |