org.plasma.provisioning.xsd
Class ConverterSupport

java.lang.Object
  extended by org.plasma.provisioning.xsd.ConverterSupport
Direct Known Subclasses:
SDOXSchemaConverter

public class ConverterSupport
extends Object


Field Summary
protected  Map<String,AttributeGroup> attributeGroupMap
          maps top-level attribute group names to attribute group structures
protected  Map<String,Class> classLocalNameMap
           
protected  Map<Class,Map<String,Property>> classPropertyMap
           
protected  Map<String,Class> classQualifiedNameMap
           
protected  Map<String,ComplexType> complexTypeMap
          maps top-level complex type names to complex type structures
protected  String destNamespacePrefix
           
protected  String destNamespaceURI
           
protected  Map<String,Element> elementMap
          maps top-level element names to element structures
protected  Schema schema
           
protected  Map<String,SimpleType> simpleTypeMap
          maps top-level simple type names to simple type structures
protected  Map<Class,HashSet<Class>> subclassMap
           
 
Constructor Summary
ConverterSupport(Schema schema, String destNamespaceURI, String destNamespacePrefix)
           
 
Method Summary
 void accept(Class root, ClassVisitor visitor)
           
 String buildLogicalEnumerationLiteralName(Enumeration enm, String name, Map<String,EnumerationLiteral> literalMap)
           
 String buildLogicalPropertyName(Class clss, String name)
           
 void collectSubclasses()
           
 Documentation createDocumentation(DocumentationType type, String content)
           
 String findAppInfoValue(Enumeration schemaEnum)
           
 QName findOpenAttributeQNameByValue(String value, OpenAttrs attrs)
           
 String findOpenAttributeValue(QName qname, OpenAttrs attrs)
           
 String findOpenAttributeValue(QName qname, OpenAttrs attrs, boolean supressError)
           
 String findSDOXValue(ComplexType complexType, String localName)
           
 String formatLocalClassName(String localName)
           
 String formatLocalPropertyName(String localName)
           
 Map<String,AttributeGroup> getAttributeGroupMap()
           
 Map<String,Class> getClassLocalNameMap()
           
 Map<Class,Map<String,Property>> getClassPropertyMap()
           
 Map<String,Class> getClassQualifiedNameMap()
           
 Map<String,ComplexType> getComplexTypeMap()
           
 String getDestNamespacePrefix()
           
 String getDestNamespaceURI()
           
 String getDocumentationContent(Annotated annotated)
           
 String getDocumentationContent(Annotation annotation)
           
 Map<String,Element> getElementMap()
           
 QName getOpenAttributeQNameByValue(String value, OpenAttrs attrs)
           
 String getOpenAttributeValue(QName qname, OpenAttrs attrs)
           
 List<Class> getRootClasses()
           
 Schema getSchema()
           
 String getSDOXValue(ComplexType complexType, String localName)
           
 String getSDOXValue(LocalElement element, String localName)
           
 Map<String,SimpleType> getSimpleTypeMap()
           
 Map<Class,HashSet<Class>> getSubclassMap()
           
 boolean isEnumeration(AbstractSimpleType simpleType)
           
 boolean logicalNameConflict(Class clss, String name)
           
 DataType mapType(XSDBuiltInType xsdType)
           
 String serializeElement(org.apache.xerces.dom.ElementNSImpl nsElem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destNamespaceURI

protected String destNamespaceURI

destNamespacePrefix

protected String destNamespacePrefix

classQualifiedNameMap

protected Map<String,Class> classQualifiedNameMap

classLocalNameMap

protected Map<String,Class> classLocalNameMap

classPropertyMap

protected Map<Class,Map<String,Property>> classPropertyMap

subclassMap

protected Map<Class,HashSet<Class>> subclassMap

schema

protected Schema schema

complexTypeMap

protected Map<String,ComplexType> complexTypeMap
maps top-level complex type names to complex type structures


elementMap

protected Map<String,Element> elementMap
maps top-level element names to element structures


simpleTypeMap

protected Map<String,SimpleType> simpleTypeMap
maps top-level simple type names to simple type structures


attributeGroupMap

protected Map<String,AttributeGroup> attributeGroupMap
maps top-level attribute group names to attribute group structures

Constructor Detail

ConverterSupport

public ConverterSupport(Schema schema,
                        String destNamespaceURI,
                        String destNamespacePrefix)
Method Detail

getDestNamespaceURI

public String getDestNamespaceURI()

getDestNamespacePrefix

public String getDestNamespacePrefix()

getClassQualifiedNameMap

public Map<String,Class> getClassQualifiedNameMap()

getClassLocalNameMap

public Map<String,Class> getClassLocalNameMap()

getClassPropertyMap

public Map<Class,Map<String,Property>> getClassPropertyMap()

getSubclassMap

public Map<Class,HashSet<Class>> getSubclassMap()

getSchema

public Schema getSchema()

getComplexTypeMap

public Map<String,ComplexType> getComplexTypeMap()

getElementMap

public Map<String,Element> getElementMap()

getSimpleTypeMap

public Map<String,SimpleType> getSimpleTypeMap()

getAttributeGroupMap

public Map<String,AttributeGroup> getAttributeGroupMap()

formatLocalClassName

public String formatLocalClassName(String localName)

formatLocalPropertyName

public String formatLocalPropertyName(String localName)

logicalNameConflict

public boolean logicalNameConflict(Class clss,
                                   String name)

buildLogicalPropertyName

public String buildLogicalPropertyName(Class clss,
                                       String name)

getRootClasses

public List<Class> getRootClasses()

accept

public void accept(Class root,
                   ClassVisitor visitor)

collectSubclasses

public void collectSubclasses()

buildLogicalEnumerationLiteralName

public String buildLogicalEnumerationLiteralName(Enumeration enm,
                                                 String name,
                                                 Map<String,EnumerationLiteral> literalMap)

isEnumeration

public boolean isEnumeration(AbstractSimpleType simpleType)

getOpenAttributeValue

public String getOpenAttributeValue(QName qname,
                                    OpenAttrs attrs)

findOpenAttributeValue

public String findOpenAttributeValue(QName qname,
                                     OpenAttrs attrs)

findOpenAttributeValue

public String findOpenAttributeValue(QName qname,
                                     OpenAttrs attrs,
                                     boolean supressError)

getOpenAttributeQNameByValue

public QName getOpenAttributeQNameByValue(String value,
                                          OpenAttrs attrs)

findOpenAttributeQNameByValue

public QName findOpenAttributeQNameByValue(String value,
                                           OpenAttrs attrs)

getDocumentationContent

public String getDocumentationContent(Annotation annotation)

getDocumentationContent

public String getDocumentationContent(Annotated annotated)

serializeElement

public String serializeElement(org.apache.xerces.dom.ElementNSImpl nsElem)

getSDOXValue

public String getSDOXValue(ComplexType complexType,
                           String localName)

findSDOXValue

public String findSDOXValue(ComplexType complexType,
                            String localName)

getSDOXValue

public String getSDOXValue(LocalElement element,
                           String localName)

mapType

public DataType mapType(XSDBuiltInType xsdType)

findAppInfoValue

public String findAppInfoValue(Enumeration schemaEnum)

createDocumentation

public Documentation createDocumentation(DocumentationType type,
                                         String content)


Copyright © 2014. All rights reserved.