org.exolab.castor.builder
public class TypeConversion extends Object
Version: $Revision: 6371 $ $Date: 2006-01-21 04:43:28 -0700 (Sat, 21 Jan 2006) $
Nested Class Summary | |
---|---|
static class | TypeConversion.TypeNames |
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, String packageName, boolean useJava50)
Converts the given Simpletype to the appropriate XSType.
|
XSType | convertType(SimpleType simpleType, boolean useWrapper, String packageName, boolean useJava50)
Converts the given Simpletype to the appropriate XSType.
|
static XSType | convertType(String javaType)
Returns the XSType that corresponds to the given javaType |
Parameters: config the BuilderConfiguration instance (must not be null).
Parameters: simpleType the SimpleType to convert to an XSType instance useJava50 true if source code is to be generated for Java 5
Returns: the XSType which represets the given Simpletype
Parameters: simpleType the SimpleType to convert to an XSType instance packageName the packageName for any new class types useJava50 true if source code is to be generated for Java 5
Returns: the XSType which represets the given Simpletype
Parameters: simpleType the SimpleType to convert to an XSType instance useWrapper a boolean that when true indicates that primitive wrappers be used instead of the actual primitives (e.g. java.lang.Integer instead of int) packageName the packageName for any new class types useJava50 true if source code is to be generated for Java 5
Returns: the XSType which represets the given Simpletype
Parameters: javaType name of the Java type for which to look up the XSType
Returns: XSType that corresponds to the given javaType