|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.exolab.castor.builder.TypeConversion
public final class TypeConversion
A class used to convert XML Schema SimpleTypes into the appropriate XSType.
| Nested Class Summary | |
|---|---|
protected static class |
TypeConversion.TypeNames
Constants. |
| Constructor Summary | |
|---|---|
TypeConversion(BuilderConfiguration config)
Creates a new TypeConversion instance. |
|
| Method Summary | |
|---|---|
XSType |
convertType(SimpleType simpleType,
boolean useJava50)
Converts the given Simpletype to the appropriate XSType. |
XSType |
convertType(SimpleType simpleType,
java.lang.String packageName,
boolean useJava50)
Converts the given Simpletype to the appropriate XSType. |
XSType |
convertType(SimpleType simpleType,
java.lang.String packageName,
boolean useWrapper,
boolean useJava50,
java.lang.String javaClassBindingName)
Converts the given Simpletype to the appropriate XSType. |
static XSType |
convertType(java.lang.String javaType)
Returns the XSType that corresponds to the given javaType. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeConversion(BuilderConfiguration config)
config - the BuilderConfiguration instance (must not be null).| Method Detail |
|---|
public XSType convertType(SimpleType simpleType,
boolean useJava50)
simpleType - the SimpleType to convert to an XSType instanceuseJava50 - true if source code is to be generated for Java 5
public XSType convertType(SimpleType simpleType,
java.lang.String packageName,
boolean useJava50)
simpleType - the SimpleType to convert to an XSType instancepackageName - the packageName for any new class typesuseJava50 - true if source code is to be generated for Java 5
public XSType convertType(SimpleType simpleType,
java.lang.String packageName,
boolean useWrapper,
boolean useJava50,
java.lang.String javaClassBindingName)
simpleType - the SimpleType to convert to an XSType instancepackageName - the packageName for any new class typesuseWrapper - a boolean that when true indicates that primitive
wrappers be used instead of the actual primitives (e.g.
java.lang.Integer instead of int)useJava50 - true if source code is to be generated for Java 5javaClassBindingName - valid java Class Name specified by corresponding
binding component
public static XSType convertType(java.lang.String javaType)
javaType - name of the Java type for which to look up the XSType
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||