|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.zeus.util.SchemaUtils
SchemaUtils
provides utility methods specific to XML Schema
and code dealing with schemas.
Constructor Summary | |
SchemaUtils()
|
Method Summary | |
static java.lang.String |
getJavaType(java.lang.String schemaType)
This will take as input an XML Schema data type (such as "string") and convert it to a Java data type (such as "String"). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SchemaUtils()
Method Detail |
public static java.lang.String getJavaType(java.lang.String schemaType) throws UnsupportedSchemaTypeException
This will take as input an XML Schema data type (such as "string") and convert it to a Java data type (such as "String"). It includes, if needed, the fully-qualified package (such as "java.util.List") to prevent import problems.
Note: Eventually this should probably work in concert with some methodology that handles package imports and the like.
schemaType
- the XML Schema data type (as a String
)String
- the Java data type.UnsupportedSchemaTypeException
- - when the supplied
schema type is not supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |