org.apache.tuscany.sdo.helper
Class SchemaBuilder

java.lang.Object
  extended by org.apache.tuscany.sdo.helper.SDOAnnotations
      extended by org.apache.tuscany.sdo.helper.SchemaBuilder

public class SchemaBuilder
extends SDOAnnotations


Field Summary
static String DEFAULT_SCHEMA_LOCATION
           
static String EFEATURE_MAP_ENTRY
           
static String NAME_SPACE_PREFIX
           
protected  Map schemaLocationMap
           
protected  Map targetNamespacePrefixMap
           
protected  TypeTable typeTable
           
protected  org.eclipse.xsd.XSDFactory xsdFactory
           
 
Fields inherited from class org.apache.tuscany.sdo.helper.SDOAnnotations
ABSTRACT_TYPE, ALIAS_NAMES, ATTRIBUTE, COLON, COMMONJ_SDO_NS, COMMONJ_SDO_NS_PREFIX, COMPLEX_TYPE, ELEMENT, INSTANCE_CLASS, JAVA_PACKAGE, OPPOSITE_PROPERTY, PROPERTY_TYPE, READ_ONLY, SCHEMA, SDO_JAVA_NS, SDO_JAVA_NS_PREFIX, SIMPLE_TYPE
 
Constructor Summary
protected SchemaBuilder(Map schemaMap, Map nsPrefixMap, TypeTable typeTable, Map schemaLocMap)
           
 
Method Summary
 javax.xml.namespace.QName buildComplexSchemaType(Type dataType)
           
protected  javax.xml.namespace.QName buildSchema(Type dataType)
           
static String getCorrectName(String wrongName)
          JAM convert first name of an attribute into UpperCase as an example if there is a instance variable called foo in a bean , then Jam give that as Foo so this method is to correct that error
 
Methods inherited from class org.apache.tuscany.sdo.helper.SDOAnnotations
makeAnnotationMapKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SCHEMA_LOCATION

public static final String DEFAULT_SCHEMA_LOCATION
See Also:
Constant Field Values

NAME_SPACE_PREFIX

public static final String NAME_SPACE_PREFIX
See Also:
Constant Field Values

EFEATURE_MAP_ENTRY

public static final String EFEATURE_MAP_ENTRY
See Also:
Constant Field Values

targetNamespacePrefixMap

protected Map targetNamespacePrefixMap

schemaLocationMap

protected Map schemaLocationMap

typeTable

protected TypeTable typeTable

xsdFactory

protected org.eclipse.xsd.XSDFactory xsdFactory
Constructor Detail

SchemaBuilder

protected SchemaBuilder(Map schemaMap,
                        Map nsPrefixMap,
                        TypeTable typeTable,
                        Map schemaLocMap)
Method Detail

buildComplexSchemaType

public javax.xml.namespace.QName buildComplexSchemaType(Type dataType)

buildSchema

protected javax.xml.namespace.QName buildSchema(Type dataType)
                                         throws IllegalArgumentException
Throws:
IllegalArgumentException

getCorrectName

public static String getCorrectName(String wrongName)
JAM convert first name of an attribute into UpperCase as an example if there is a instance variable called foo in a bean , then Jam give that as Foo so this method is to correct that error

Parameters:
wrongName -
Returns:
the right name, using english as the locale for case conversion


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.