org.apache.tuscany.sdo.helper
Class SchemaBuilder
java.lang.Object
org.apache.tuscany.sdo.helper.SDOAnnotations
org.apache.tuscany.sdo.helper.SchemaBuilder
public class SchemaBuilder
- extends SDOAnnotations
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(java.util.Map schemaMap,
java.util.Map nsPrefixMap,
TypeTable typeTable,
java.util.Map schemaLocMap)
|
Method Summary |
javax.xml.namespace.QName |
buildComplexSchemaType(commonj.sdo.Type dataType)
|
protected javax.xml.namespace.QName |
buildSchema(commonj.sdo.Type dataType)
|
static java.lang.String |
getCorrectName(java.lang.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SCHEMA_LOCATION
public static final java.lang.String DEFAULT_SCHEMA_LOCATION
- See Also:
- Constant Field Values
NAME_SPACE_PREFIX
public static final java.lang.String NAME_SPACE_PREFIX
- See Also:
- Constant Field Values
EFEATURE_MAP_ENTRY
public static final java.lang.String EFEATURE_MAP_ENTRY
- See Also:
- Constant Field Values
targetNamespacePrefixMap
protected java.util.Map targetNamespacePrefixMap
schemaLocationMap
protected java.util.Map schemaLocationMap
typeTable
protected TypeTable typeTable
xsdFactory
protected org.eclipse.xsd.XSDFactory xsdFactory
SchemaBuilder
protected SchemaBuilder(java.util.Map schemaMap,
java.util.Map nsPrefixMap,
TypeTable typeTable,
java.util.Map schemaLocMap)
buildComplexSchemaType
public javax.xml.namespace.QName buildComplexSchemaType(commonj.sdo.Type dataType)
buildSchema
protected javax.xml.namespace.QName buildSchema(commonj.sdo.Type dataType)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
getCorrectName
public static java.lang.String getCorrectName(java.lang.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 © 2006 Apache Software Foundation. All Rights Reserved.