Package org.exolab.castor.builder
Class TypeConversion
java.lang.Object
org.exolab.castor.builder.TypeConversion
A class used to convert XML Schema SimpleTypes into the appropriate XSType.
- Version:
- $Revision$ $Date: 2006-01-21 04:43:28 -0700 (Sat, 21 Jan 2006) $
- Author:
- Keith Visco, Arnaud Blandin
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTypeConversion
(BuilderConfiguration config) Creates a new TypeConversion instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic XSType
convertType
(String javaType) Returns the XSType that corresponds to the given javaType.convertType
(SimpleType simpleType, boolean useJava50) Converts the given Simpletype to the appropriate XSType.convertType
(SimpleType simpleType, String packageName, boolean useJava50) Converts the given Simpletype to the appropriate XSType.convertType
(SimpleType simpleType, String packageName, boolean useWrapper, boolean useJava50, String javaClassBindingName) Converts the given Simpletype to the appropriate XSType.
-
Constructor Details
-
TypeConversion
Creates a new TypeConversion instance.- Parameters:
config
- the BuilderConfiguration instance (must not be null).
-
-
Method Details
-
convertType
Converts the given Simpletype to the appropriate XSType.- Parameters:
simpleType
- the SimpleType to convert to an XSType instanceuseJava50
- true if source code is to be generated for Java 5- Returns:
- the XSType which represets the given Simpletype
-
convertType
Converts the given Simpletype to the appropriate XSType.- Parameters:
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- Returns:
- the XSType which represets the given Simpletype
-
convertType
public XSType convertType(SimpleType simpleType, String packageName, boolean useWrapper, boolean useJava50, String javaClassBindingName) Converts the given Simpletype to the appropriate XSType.- Parameters:
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- Returns:
- the XSType which represets the given Simpletype
-
convertType
-