public class TypeConversion
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TypeConversion.TypeNames |
| Constructor and Description |
|---|
TypeConversion(BuilderConfiguration config)
Creates a new TypeConversion instance
|
| Modifier and Type | Method and Description |
|---|---|
XSType |
convertType(SimpleType simpleType,
boolean useJava50)
Converts the given Simpletype to the appropriate XSType.
|
XSType |
convertType(SimpleType simpleType,
boolean useWrapper,
java.lang.String packageName,
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.
|
static XSType |
convertType(java.lang.String javaType)
Returns the XSType that corresponds to the given javaType
|
public TypeConversion(BuilderConfiguration config)
config - the BuilderConfiguration instance (must not be null).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 5public 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 5public XSType convertType(SimpleType simpleType, boolean useWrapper, java.lang.String packageName, boolean useJava50)
simpleType - the SimpleType to convert to an XSType instanceuseWrapper - 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 typesuseJava50 - true if source code is to be generated for Java 5public static XSType convertType(java.lang.String javaType)
javaType - name of the Java type for which to look up the XSTypeIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com