org.enhydra.zeus.util
Class SchemaUtils

java.lang.Object
  |
  +--org.enhydra.zeus.util.SchemaUtils

public class SchemaUtils
extends java.lang.Object

SchemaUtils provides utility methods specific to XML Schema and code dealing with schemas.

Author:
Brett McLaughlin

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

SchemaUtils

public SchemaUtils()
Method Detail

getJavaType

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.

Parameters:
schemaType - the XML Schema data type (as a String)
Returns:
String - the Java data type.
Throws:
UnsupportedSchemaTypeException - - when the supplied schema type is not supported.


Copyright © 2001 Enhydra. All Rights Reserved.