|
EclipseLink 1.1.4, build 'v20100812-r7860' 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.compiler.AnnotationsProcessor
public class AnnotationsProcessor
INTERNAL:
Purpose:To perform some initial processing of Java classes and JAXB 2.0 Annotations and generate meta data that can be used by the Mappings Generator and Schema Generator
Responsibilities:
This class does the initial processing of the JAXB 2.0 Generation. It generates meta data that can be used by the later Schema Generation and Mapping Generation steps.
Generator
Constructor Summary | |
---|---|
AnnotationsProcessor(Helper helper)
|
Method Summary | |
---|---|
SchemaTypeInfo |
addClass(JavaClass javaClass)
|
void |
addEnumTypeInfo(JavaClass javaClass,
EnumTypeInfo info)
|
protected boolean |
areEquals(JavaClass src,
java.lang.Class tgt)
Compares a JavaModel JavaClass to a Class. |
protected boolean |
areEquals(JavaClass src,
java.lang.String tgtCanonicalName)
Compares a JavaModel JavaClass to a Class. |
TypeInfo |
createTypeInfoFor(JavaClass javaClass)
|
java.util.ArrayList |
getEnumerationFacetsFor(EnumTypeInfo info)
|
java.util.ArrayList<Property> |
getFieldPropertiesForClass(JavaClass cls,
TypeInfo info,
boolean onlyPublic)
|
java.util.HashMap<javax.xml.namespace.QName,ElementDeclaration> |
getGlobalElements()
|
java.util.HashMap<java.lang.String,MarshalCallback> |
getMarshalCallbacks()
|
NamespaceInfo |
getNamespaceInfoForPackage(JavaPackage pack)
|
NamespaceResolver |
getNamespaceResolver()
|
java.util.ArrayList |
getNoAccessTypePropertiesForClass(JavaClass cls,
TypeInfo info)
|
java.util.HashMap<java.lang.String,NamespaceInfo> |
getPackageToNamespaceMappings()
|
java.util.ArrayList<Property> |
getPropertiesForClass(JavaClass cls,
TypeInfo info)
|
java.util.HashMap |
getPropertyMapFromArrayList(java.util.ArrayList<Property> props)
|
java.util.ArrayList<Property> |
getPropertyPropertiesForClass(JavaClass cls,
TypeInfo info,
boolean onlyPublic)
|
java.util.ArrayList |
getPublicMemberPropertiesForClass(JavaClass cls,
TypeInfo info)
|
javax.xml.namespace.QName |
getQNameForProperty(java.lang.String defaultName,
JavaHasAnnotations element)
|
javax.xml.namespace.QName |
getSchemaTypeFor(JavaClass javaClass)
|
java.lang.String |
getSchemaTypeNameFor(JavaClass javaClass,
javax.xml.bind.annotation.XmlType xmlType)
|
java.lang.String |
getSchemaTypeNameForClassName(java.lang.String className)
|
java.util.HashMap<java.lang.String,TypeInfo> |
getTypeInfo()
|
java.util.ArrayList<JavaClass> |
getTypeInfoClasses()
|
java.util.HashMap<java.lang.String,UnmarshalCallback> |
getUnmarshalCallbacks()
|
java.util.HashMap |
getUserDefinedSchemaTypes()
|
boolean |
isCollectionType(Property field)
|
void |
processClassesAndProperties(JavaClass[] classes)
|
NamespaceInfo |
processNamespaceInformation(javax.xml.bind.annotation.XmlSchema xmlSchema)
|
JavaClass[] |
processObjectFactory(JavaClass objectFactoryClass,
java.util.ArrayList<JavaClass> classes)
|
void |
processSchemaType(javax.xml.bind.annotation.XmlSchemaType type)
|
boolean |
shouldGenerateTypeInfo(JavaClass javaClass)
|
void |
updateGlobalElements(java.util.ArrayList<JavaClass> classesToProcess)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationsProcessor(Helper helper)
Method Detail |
---|
public void processClassesAndProperties(JavaClass[] classes)
public SchemaTypeInfo addClass(JavaClass javaClass)
public TypeInfo createTypeInfoFor(JavaClass javaClass)
public boolean shouldGenerateTypeInfo(JavaClass javaClass)
public java.util.ArrayList<Property> getPropertiesForClass(JavaClass cls, TypeInfo info)
public java.util.ArrayList<Property> getFieldPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic)
protected boolean areEquals(JavaClass src, java.lang.Class tgt)
src
- tgt
-
protected boolean areEquals(JavaClass src, java.lang.String tgtCanonicalName)
src
- tgt
-
public java.util.ArrayList<Property> getPropertyPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic)
public java.util.ArrayList getPublicMemberPropertiesForClass(JavaClass cls, TypeInfo info)
public java.util.HashMap getPropertyMapFromArrayList(java.util.ArrayList<Property> props)
public java.util.ArrayList getNoAccessTypePropertiesForClass(JavaClass cls, TypeInfo info)
public void processSchemaType(javax.xml.bind.annotation.XmlSchemaType type)
public void addEnumTypeInfo(JavaClass javaClass, EnumTypeInfo info)
public java.util.ArrayList getEnumerationFacetsFor(EnumTypeInfo info)
public java.lang.String getSchemaTypeNameForClassName(java.lang.String className)
public javax.xml.namespace.QName getSchemaTypeFor(JavaClass javaClass)
public boolean isCollectionType(Property field)
public NamespaceInfo processNamespaceInformation(javax.xml.bind.annotation.XmlSchema xmlSchema)
public java.util.HashMap<java.lang.String,TypeInfo> getTypeInfo()
public java.util.ArrayList<JavaClass> getTypeInfoClasses()
public java.util.HashMap getUserDefinedSchemaTypes()
public NamespaceResolver getNamespaceResolver()
public java.lang.String getSchemaTypeNameFor(JavaClass javaClass, javax.xml.bind.annotation.XmlType xmlType)
public javax.xml.namespace.QName getQNameForProperty(java.lang.String defaultName, JavaHasAnnotations element)
public java.util.HashMap<java.lang.String,NamespaceInfo> getPackageToNamespaceMappings()
public NamespaceInfo getNamespaceInfoForPackage(JavaPackage pack)
public java.util.HashMap<java.lang.String,MarshalCallback> getMarshalCallbacks()
public java.util.HashMap<java.lang.String,UnmarshalCallback> getUnmarshalCallbacks()
public JavaClass[] processObjectFactory(JavaClass objectFactoryClass, java.util.ArrayList<JavaClass> classes)
public java.util.HashMap<javax.xml.namespace.QName,ElementDeclaration> getGlobalElements()
public void updateGlobalElements(java.util.ArrayList<JavaClass> classesToProcess)
|
EclipseLink 1.1.4, build 'v20100812-r7860' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |