|
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.SchemaGenerator
public class SchemaGenerator
INTERNAL:
Purpose:To generate Schema objects based on a map of TypeInfo objects, and some additional information gathered by the AnnotationsProcessing phase.
Responsibilities:
This class is used by the Generator to handle the generation of Schemas. The Generator passes in a map of TypeInfo objects, generated by the Annotations processor. The generated Schemas are stored in a map of keyed on Target Namespace.
TypeInfo
, AnnotationsProcessor
, Generator
Nested Class Summary | |
---|---|
(package private) class |
SchemaGenerator.AddToSchemaResult This class will typically be used when building schema components. |
Field Summary | |
---|---|
private java.util.List<org.eclipse.persistence.internal.oxm.schema.model.Schema> |
allSchemas |
private java.util.Map<java.lang.String,java.lang.Class> |
arrayClassesToGeneratedClasses |
private static java.lang.String |
ATT |
private static java.lang.String |
BUILD_FIELD_VALUE_METHOD |
private static java.lang.String |
COLON |
private static java.lang.String |
DEFAULT |
private static java.lang.String |
DOT |
private static java.lang.Character |
DOT_CHAR |
private static java.lang.String |
EMPTY_STRING |
private static java.lang.String |
ENTRY |
private static java.lang.String |
GENERATE |
private Helper |
helper |
private static java.lang.String |
ID |
private static java.lang.String |
IDREF |
private static java.lang.String |
JAVAX_ACTIVATION_DATAHANDLER |
private static java.lang.String |
JAVAX_MAIL_INTERNET_MIMEMULTIPART |
private static java.lang.String |
OBJECT_CLASSNAME |
private javax.xml.bind.SchemaOutputResolver |
outputResolver |
private java.util.HashMap<java.lang.String,PackageInfo> |
packageToPackageInfoMappings |
private org.eclipse.persistence.internal.oxm.schema.model.Schema |
schema |
private static java.lang.String |
SCHEMA |
private static java.lang.String |
SCHEMA_EXT |
private int |
schemaCount |
private java.util.HashMap<java.lang.String,org.eclipse.persistence.internal.oxm.schema.model.Schema> |
schemaForNamespace |
private java.util.HashMap<java.lang.String,SchemaTypeInfo> |
schemaTypeInfo |
private static java.lang.String |
SKIP |
private static java.lang.Character |
SLASH |
private static java.lang.Character |
SLASHES |
private static java.lang.String |
SWA_REF_IMPORT |
private java.util.HashMap<java.lang.String,TypeInfo> |
typeInfo |
private java.util.HashMap<java.lang.String,javax.xml.namespace.QName> |
userDefinedSchemaTypes |
Constructor Summary | |
---|---|
SchemaGenerator(Helper helper) |
Method Summary | |
---|---|
private void |
addAnyAttributeToSchema(org.eclipse.persistence.internal.oxm.schema.model.ComplexType type) Convenience method for processing an any attribute property. |
private void |
addAnyToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor) Convenience method for processing an any property. |
private void |
addAnyToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, boolean isCollection) Convenience method for processing an any property. |
private void |
addAnyToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, boolean isCollection, java.lang.String anyNamespace) Convenience method for processing an any property. |
private void |
addAttributeToSchema(org.eclipse.persistence.internal.oxm.schema.model.Attribute attribute, javax.xml.namespace.QName attributeName, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type) Convenience method for processing an attribute property. |
private void |
addChoiceToSchema(Property property, TypeInfo typeInfo, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Schema schema) Convenience method for processing a choice property. |
private void |
addElementRefToSchema(org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Element referencedElement, java.lang.String referencedElementURI) Convenience method that adds an element ref to a given schema. |
private void |
addElementToSchema(org.eclipse.persistence.internal.oxm.schema.model.Element element, java.lang.String elementURI, boolean isPositional, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Schema schema) Convenience method that adds an element to a given schema. |
void |
addGlobalElements(java.util.HashMap<javax.xml.namespace.QName,ElementDeclaration> additionalElements) |
private boolean |
addImportIfRequired(org.eclipse.persistence.internal.oxm.schema.model.Schema sourceSchema, org.eclipse.persistence.internal.oxm.schema.model.Schema importSchema, java.lang.String importNamespace) |
private void |
addMapToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.Element element, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, TypeInfo typeInfo) Convenience method for processing a reference property. |
private void |
addReferenceToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor) Convenience method for processing a reference property. |
void |
addSchemaComponents(JavaClass myClass) |
void |
addToSchemaType(TypeInfo ownerTypeInfo, java.util.List<Property> properties, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type, org.eclipse.persistence.internal.oxm.schema.model.Schema workingSchema) |
private void |
addTransformerToSchema(Property property, TypeInfo typeInfo, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type, org.eclipse.persistence.internal.oxm.schema.model.Schema schema) Convenience method for processing XmlWriteTransformer(s) for a given property. |
private SchemaGenerator.AddToSchemaResult |
addXmlElementWrapperToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor) Convenience method for processing an XmlElementWrapper for a given property. |
private void |
addXmlJoinNodesToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type) Convenience method that processes the XmlJoinNodes for a given Property and adds the appropriate components to the schema. |
private SchemaGenerator.AddToSchemaResult |
addXPathToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, boolean isChoice, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type) Process a given XmlPath, and create the required schema components. |
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. |
private org.eclipse.persistence.internal.oxm.schema.model.Attribute |
buildAttribute(Property property, org.eclipse.persistence.internal.oxm.schema.model.Schema schema) Build an Attribute based on a given Property. |
private org.eclipse.persistence.internal.oxm.schema.model.Attribute |
buildAttribute(javax.xml.namespace.QName attributeName, java.lang.String typeName) Build an Attribute with name and type set. |
private org.eclipse.persistence.internal.oxm.schema.model.Element |
buildElement(Property property, boolean isAll, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, TypeInfo typeInfo) Build an Element based on a given Property. |
private org.eclipse.persistence.internal.oxm.schema.model.Element |
buildElement(java.lang.String elementName, java.lang.String elementType, boolean isAll) Build an Element with name, type and possibly minOccurs set. |
protected SchemaGenerator.AddToSchemaResult |
buildSchemaComponentsForXPath(org.eclipse.persistence.internal.oxm.XPathFragment frag, SchemaGenerator.AddToSchemaResult xpr, boolean isChoice, Property next) This method will build element/complexType/typedefparticle components for a given xml-path, and return an XmlPathResult instance containg the sequence that the target should be added to, as well as the current schema - which could be different than the working schema used before calling this method in the case of a prefixed path element from a different namespace. |
org.eclipse.persistence.internal.oxm.schema.model.Attribute |
createGlobalAttribute(org.eclipse.persistence.internal.oxm.XPathFragment frag, org.eclipse.persistence.internal.oxm.schema.model.Schema workingSchema, org.eclipse.persistence.internal.oxm.schema.model.Schema fragSchema, Property prop) Create a global attribute. |
org.eclipse.persistence.internal.oxm.schema.model.Element |
createGlobalElement(org.eclipse.persistence.internal.oxm.XPathFragment frag, org.eclipse.persistence.internal.oxm.schema.model.Schema workingSchema, org.eclipse.persistence.internal.oxm.schema.model.Schema fragSchema, boolean isChoice, boolean isUnbounded, Property prop, boolean shouldSetType) Create a global element. |
org.eclipse.persistence.internal.oxm.schema.model.Attribute |
createRefAttribute(java.lang.String attributeRefName, org.eclipse.persistence.internal.oxm.schema.model.ComplexType owningComplexType) Create an attribute reference and add it to a given complex type. |
org.eclipse.persistence.internal.oxm.schema.model.Element |
createRefElement(java.lang.String elementRefName, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle particle) Create an element reference and add it to a given particle. |
protected org.eclipse.persistence.internal.oxm.schema.model.Element |
elementExistsInParticle(java.lang.String elementName, java.lang.String refString, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle particle) Convenience method for determining if an element already exists in a given typedefparticle. |
org.eclipse.persistence.internal.oxm.schema.model.Schema |
generateSchema(java.util.ArrayList<JavaClass> typeInfoClasses, java.util.HashMap<java.lang.String,TypeInfo> typeInfo, java.util.HashMap<java.lang.String,javax.xml.namespace.QName> userDefinedSchemaTypes, java.util.HashMap<java.lang.String,PackageInfo> packageToPackageInfoMappings, java.util.HashMap<javax.xml.namespace.QName,ElementDeclaration> additionalGlobalElements, java.util.Map<java.lang.String,java.lang.Class> arrayClassesToGeneratedClasses) |
org.eclipse.persistence.internal.oxm.schema.model.Schema |
generateSchema(java.util.ArrayList<JavaClass> typeInfoClasses, java.util.HashMap<java.lang.String,TypeInfo> typeInfo, java.util.HashMap<java.lang.String,javax.xml.namespace.QName> userDefinedSchemaTypes, java.util.HashMap<java.lang.String,PackageInfo> packageToPackageInfoMappings, java.util.HashMap<javax.xml.namespace.QName,ElementDeclaration> additionalGlobalElements, java.util.Map<java.lang.String,java.lang.Class> arrayClassesToGeneratedClasses, javax.xml.bind.SchemaOutputResolver outputResolver) |
java.util.Collection<org.eclipse.persistence.internal.oxm.schema.model.Schema> |
getAllSchemas() |
java.util.ArrayList<java.lang.String> |
getEnumerationFacetsFor(EnumTypeInfo info) |
NamespaceInfo |
getNamespaceInfoForNamespace(java.lang.String namespace) |
java.lang.String |
getOrGeneratePrefixForNamespace(java.lang.String URI, org.eclipse.persistence.internal.oxm.schema.model.Schema schema) Attempt to resolve the given URI to a prefix. |
java.lang.String |
getPrefixForNamespace(org.eclipse.persistence.internal.oxm.schema.model.Schema schema, java.lang.String URI) |
private java.lang.String |
getQualifiedTypeName(Property prop, org.eclipse.persistence.internal.oxm.schema.model.Schema schema) Return the qualified (if necessary) type name for a given Property. |
private org.eclipse.persistence.internal.oxm.schema.model.Schema |
getSchemaForNamespace(java.lang.String namespace) Return the Schema for a given namespace. |
javax.xml.namespace.QName |
getSchemaTypeFor(JavaClass javaClass) Return the schema type (as QName) based on a given JavaClass. |
java.util.HashMap<java.lang.String,SchemaTypeInfo> |
getSchemaTypeInfo() Return the Map of SchemaTypeInfo instances. |
java.lang.String |
getSchemaTypeNameForClassName(java.lang.String className) |
private java.lang.String |
getTypeName(Property next, JavaClass javaType, org.eclipse.persistence.internal.oxm.schema.model.Schema theSchema) Return the type name for a given Property. |
private java.lang.String |
getTypeNameForElement(Property property, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, JavaClass javaClass, org.eclipse.persistence.internal.oxm.schema.model.Element element) Return the type name for an Element based on a given property. |
Property |
getXmlValueFieldForSimpleContent(TypeInfo info) |
private boolean |
importExists(org.eclipse.persistence.internal.oxm.schema.model.Schema schema, java.lang.String schemaName) |
boolean |
isCollectionType(Property field) Indicates if a given Property is a collection type. |
void |
populateSchemaTypes() |
private boolean |
shouldAddRefAndSetForm(org.eclipse.persistence.internal.oxm.schema.model.SimpleComponent sc, java.lang.String simpleComponentNamespace, java.lang.String lookupNamespace, boolean formQualified, boolean isElement) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashMap<java.lang.String,org.eclipse.persistence.internal.oxm.schema.model.Schema> schemaForNamespace
private java.util.List<org.eclipse.persistence.internal.oxm.schema.model.Schema> allSchemas
private org.eclipse.persistence.internal.oxm.schema.model.Schema schema
private int schemaCount
private Helper helper
private java.util.HashMap<java.lang.String,TypeInfo> typeInfo
private java.util.HashMap<java.lang.String,PackageInfo> packageToPackageInfoMappings
private java.util.HashMap<java.lang.String,SchemaTypeInfo> schemaTypeInfo
private java.util.HashMap<java.lang.String,javax.xml.namespace.QName> userDefinedSchemaTypes
private java.util.Map<java.lang.String,java.lang.Class> arrayClassesToGeneratedClasses
private static final java.lang.String JAVAX_ACTIVATION_DATAHANDLER
private static final java.lang.String JAVAX_MAIL_INTERNET_MIMEMULTIPART
private static final java.lang.String SWA_REF_IMPORT
private static final java.lang.String BUILD_FIELD_VALUE_METHOD
private static final java.lang.String COLON
private static final java.lang.String ATT
private static final java.lang.String EMPTY_STRING
private static final java.lang.String DOT
private static final java.lang.String SKIP
private static final java.lang.String ENTRY
private static final java.lang.String DEFAULT
private static final java.lang.String GENERATE
private static final java.lang.String SCHEMA
private static final java.lang.String SCHEMA_EXT
private static final java.lang.String OBJECT_CLASSNAME
private static final java.lang.String ID
private static final java.lang.String IDREF
private static final java.lang.Character DOT_CHAR
private static final java.lang.Character SLASH
private static final java.lang.Character SLASHES
private javax.xml.bind.SchemaOutputResolver outputResolver
Constructor Detail |
---|
public SchemaGenerator(Helper helper)
Method Detail |
---|
public org.eclipse.persistence.internal.oxm.schema.model.Schema generateSchema(java.util.ArrayList<JavaClass> typeInfoClasses, java.util.HashMap<java.lang.String,TypeInfo> typeInfo, java.util.HashMap<java.lang.String,javax.xml.namespace.QName> userDefinedSchemaTypes, java.util.HashMap<java.lang.String,PackageInfo> packageToPackageInfoMappings, java.util.HashMap<javax.xml.namespace.QName,ElementDeclaration> additionalGlobalElements, java.util.Map<java.lang.String,java.lang.Class> arrayClassesToGeneratedClasses, javax.xml.bind.SchemaOutputResolver outputResolver)
public org.eclipse.persistence.internal.oxm.schema.model.Schema generateSchema(java.util.ArrayList<JavaClass> typeInfoClasses, java.util.HashMap<java.lang.String,TypeInfo> typeInfo, java.util.HashMap<java.lang.String,javax.xml.namespace.QName> userDefinedSchemaTypes, java.util.HashMap<java.lang.String,PackageInfo> packageToPackageInfoMappings, java.util.HashMap<javax.xml.namespace.QName,ElementDeclaration> additionalGlobalElements, java.util.Map<java.lang.String,java.lang.Class> arrayClassesToGeneratedClasses)
public void addSchemaComponents(JavaClass myClass)
public void addToSchemaType(TypeInfo ownerTypeInfo, java.util.List<Property> properties, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type, org.eclipse.persistence.internal.oxm.schema.model.Schema workingSchema)
public javax.xml.namespace.QName getSchemaTypeFor(JavaClass javaClass)
javaClass
-public void populateSchemaTypes()
public java.lang.String getSchemaTypeNameForClassName(java.lang.String className)
public java.util.ArrayList<java.lang.String> getEnumerationFacetsFor(EnumTypeInfo info)
public Property getXmlValueFieldForSimpleContent(TypeInfo info)
public boolean isCollectionType(Property field)
field
-private org.eclipse.persistence.internal.oxm.schema.model.Schema getSchemaForNamespace(java.lang.String namespace)
namespace
-public java.util.Collection<org.eclipse.persistence.internal.oxm.schema.model.Schema> getAllSchemas()
public NamespaceInfo getNamespaceInfoForNamespace(java.lang.String namespace)
public java.lang.String getPrefixForNamespace(org.eclipse.persistence.internal.oxm.schema.model.Schema schema, java.lang.String URI)
public java.lang.String getOrGeneratePrefixForNamespace(java.lang.String URI, org.eclipse.persistence.internal.oxm.schema.model.Schema schema)
URI
-schema
-public void addGlobalElements(java.util.HashMap<javax.xml.namespace.QName,ElementDeclaration> additionalElements)
public java.util.HashMap<java.lang.String,SchemaTypeInfo> getSchemaTypeInfo()
private boolean importExists(org.eclipse.persistence.internal.oxm.schema.model.Schema schema, java.lang.String schemaName)
private boolean addImportIfRequired(org.eclipse.persistence.internal.oxm.schema.model.Schema sourceSchema, org.eclipse.persistence.internal.oxm.schema.model.Schema importSchema, java.lang.String importNamespace)
protected boolean areEquals(JavaClass src, java.lang.String tgtCanonicalName)
src
-tgt
-protected boolean areEquals(JavaClass src, java.lang.Class tgt)
src
-tgt
-private java.lang.String getTypeName(Property next, JavaClass javaType, org.eclipse.persistence.internal.oxm.schema.model.Schema theSchema)
next
-javaType
-theSchema
-private java.lang.String getQualifiedTypeName(Property prop, org.eclipse.persistence.internal.oxm.schema.model.Schema schema)
prop
-schema
-protected SchemaGenerator.AddToSchemaResult buildSchemaComponentsForXPath(org.eclipse.persistence.internal.oxm.XPathFragment frag, SchemaGenerator.AddToSchemaResult xpr, boolean isChoice, Property next)
frag
-xpr
-isAny
-isChoice
-protected org.eclipse.persistence.internal.oxm.schema.model.Element elementExistsInParticle(java.lang.String elementName, java.lang.String refString, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle particle)
elementName
- the non-null element name to look forrefString
- if the element is a ref, this will be the prefix qualified element nameparticle
- the sequence/choice/all to search for an existing elementpublic org.eclipse.persistence.internal.oxm.schema.model.Attribute createGlobalAttribute(org.eclipse.persistence.internal.oxm.XPathFragment frag, org.eclipse.persistence.internal.oxm.schema.model.Schema workingSchema, org.eclipse.persistence.internal.oxm.schema.model.Schema fragSchema, Property prop)
frag
-workingSchema
-fragSchema
-next
-public org.eclipse.persistence.internal.oxm.schema.model.Element createGlobalElement(org.eclipse.persistence.internal.oxm.XPathFragment frag, org.eclipse.persistence.internal.oxm.schema.model.Schema workingSchema, org.eclipse.persistence.internal.oxm.schema.model.Schema fragSchema, boolean isChoice, boolean isUnbounded, Property prop, boolean shouldSetType)
frag
- XPathFragment which wil lbe used to create the global elementworkingSchema
- current schemafragSchema
- frag's schemaisChoice
- indicates if we need to construct a choiceisUnbounded
- maxOccurs setting for choicenext
- property which owns the xml-pathshouldSetType
- if this is the last fragment in the xml-path and not an 'any', we should set the typepublic org.eclipse.persistence.internal.oxm.schema.model.Element createRefElement(java.lang.String elementRefName, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle particle)
elementRefName
-particle
-public org.eclipse.persistence.internal.oxm.schema.model.Attribute createRefAttribute(java.lang.String attributeRefName, org.eclipse.persistence.internal.oxm.schema.model.ComplexType owningComplexType)
attributeRefName
-owningComplexType
-private void addTransformerToSchema(Property property, TypeInfo typeInfo, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type, org.eclipse.persistence.internal.oxm.schema.model.Schema schema)
property
- the property containing one or more XmlWriteTransformers.typeInfo
- the TypeInfo that owns the propertycompositor
- sequence/choice/all to modifytype
- ComplexType which compositor(s) should be added toschema
- current schema which ComplextType will be added toprivate SchemaGenerator.AddToSchemaResult addXPathToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, boolean isChoice, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type)
property
- the property containing the XmlPath for which schema components are to be builtcompositor
- the sequence/choice/all to modifyschema
- the schema being built when this method is called - this could if the XmlPath contains an entry that references a different namespaceisChoice
- indicates if the given property is a choice propertytype
- the ComplexType which compositor(s) should be added toprivate SchemaGenerator.AddToSchemaResult addXmlElementWrapperToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor)
property
- the property containing an XmlElementWrapperschema
- the schema currently being generatedcompositor
- sequence/choice/all that the generated wrapper Element will be added toprivate org.eclipse.persistence.internal.oxm.schema.model.Attribute buildAttribute(javax.xml.namespace.QName attributeName, java.lang.String typeName)
attributeName
- name of the AttributetypeName
- type of the Attributeprivate org.eclipse.persistence.internal.oxm.schema.model.Attribute buildAttribute(Property property, org.eclipse.persistence.internal.oxm.schema.model.Schema schema)
property
- the Property used to build the Attributeschema
- the schema currently being generatedprivate void addAttributeToSchema(org.eclipse.persistence.internal.oxm.schema.model.Attribute attribute, javax.xml.namespace.QName attributeName, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type)
property
- the attribute property to be processedschema
- the schema currently being generatedtype
- the ComplexType which compositor(s) should be added toprivate boolean shouldAddRefAndSetForm(org.eclipse.persistence.internal.oxm.schema.model.SimpleComponent sc, java.lang.String simpleComponentNamespace, java.lang.String lookupNamespace, boolean formQualified, boolean isElement)
private void addAnyAttributeToSchema(org.eclipse.persistence.internal.oxm.schema.model.ComplexType type)
type
- the ComplexType which compositor(s) should be added toprivate void addAnyToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor)
property
- the choice property to be processedcompositor
- the sequence/choice/all to modifyprivate void addAnyToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, boolean isCollection)
property
- the choice property to be processedcompositor
- the sequence/choice/all to modifyisCollection
- if true will be unboundedprivate void addAnyToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, boolean isCollection, java.lang.String anyNamespace)
property
- the choice property to be processedcompositor
- the sequence/choice/all to modifyisCollection
- if true will be unboundedanyNamespace
- value for the Any's namespace attributeprivate void addChoiceToSchema(Property property, TypeInfo typeInfo, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Schema schema)
property
- the choice property to be processedtypeInfo
- the TypeInfo that the given property belongs totype
- the ComplexType which compositor(s) should be added tocompositor
- the sequence/choice/all to modifyschema
- the schema being builtprivate void addReferenceToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor)
property
- the choice property to be processedcompositor
- the sequence/choice/all to modifyschema
- the schema being builtprivate void addMapToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.Element element, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, TypeInfo typeInfo)
property
- the map property to be processedelement
- schema Element a new complex type will be added toschema
- the schema being builttypeInfo
- the TypeInfo that the given property belongs toprivate void addElementRefToSchema(org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Element referencedElement, java.lang.String referencedElementURI)
schema
- the schema being builtcompositor
- the sequence/choice/all the new reference will be added toreferencedElement
- the element being referencedreferencedElementURI
- the URI of the element being referencedprivate org.eclipse.persistence.internal.oxm.schema.model.Element buildElement(java.lang.String elementName, java.lang.String elementType, boolean isAll)
elementName
- name of the ElementelementType
- type of the ElementisAll
- indicates if the Element will be added to an All structureprivate org.eclipse.persistence.internal.oxm.schema.model.Element buildElement(Property property, boolean isAll, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, TypeInfo typeInfo)
property
- the Property used to build the ElementisAll
- true if the Element will be added to an All structureschema
- the schema currently being builttypeInfo
- the TypeInfo that owns the given Propertyprivate void addElementToSchema(org.eclipse.persistence.internal.oxm.schema.model.Element element, java.lang.String elementURI, boolean isPositional, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Schema schema)
property
- the Property that the Element will be based oncompositor
- the sequence/choice/all that the Element will be added toschema
- the schema currently being builttypeInfo
- the TypeInfo that owns the given Propertyprivate void addXmlJoinNodesToSchema(Property property, org.eclipse.persistence.internal.oxm.schema.model.TypeDefParticle compositor, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, org.eclipse.persistence.internal.oxm.schema.model.ComplexType type)
property
- the Property contianing one or more XmlJoinNode entriescompositor
- the sequence/choice/all that will be added toschema
- the schema currently being builttype
- the complex type currently being builtprivate java.lang.String getTypeNameForElement(Property property, org.eclipse.persistence.internal.oxm.schema.model.Schema schema, JavaClass javaClass, org.eclipse.persistence.internal.oxm.schema.model.Element element)
property
- the Property that the type name will be based onschema
- the schema currently being builtjavaClass
- the given Property's 'actual' typeelement
- the element being generated for the given Property
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |