org.exolab.castor.builder

Class TypeConversion

public class TypeConversion extends Object

A class used to convert XML Schema SimpleTypes into the appropriate XSType

Version: $Revision: 1.7 $ $Date: 2005/03/05 13:41:42 $

Author: Keith Visco Arnaud Blandin

Nested Class Summary
classTypeConversion.TypeNames
Constructor Summary
TypeConversion(BuilderConfiguration config)
Creates a new TypeConversion instance
Method Summary
XSTypeconvertType(SimpleType simpleType)
Converts the given Simpletype to the appropriate XSType.
XSTypeconvertType(SimpleType simpleType, String packageName)
Converts the given Simpletype to the appropriate XSType.
XSTypeconvertType(SimpleType simpleType, boolean useWrapper, String packageName)
Converts the given Simpletype to the appropriate XSType.
static XSTypeconvertType(String javaType)
Returns the XSType that corresponds to the given javaType

Constructor Detail

TypeConversion

public TypeConversion(BuilderConfiguration config)
Creates a new TypeConversion instance

Parameters: config the BuilderConfiguration instance (must not be null).

Method Detail

convertType

public XSType convertType(SimpleType simpleType)
Converts the given Simpletype to the appropriate XSType.

Parameters: simpleType the SimpleType to convert to an XSType instance

Returns: the XSType which represets the given Simpletype

convertType

public XSType convertType(SimpleType simpleType, String packageName)
Converts the given Simpletype to the appropriate XSType.

Parameters: simpleType the SimpleType to convert to an XSType instance packageName the packageName for any new class types

Returns: the XSType which represets the given Simpletype

convertType

public XSType convertType(SimpleType simpleType, boolean useWrapper, String packageName)
Converts the given Simpletype to the appropriate XSType.

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

Returns: the XSType which represets the given Simpletype

convertType

public static XSType convertType(String javaType)
Returns the XSType that corresponds to the given javaType

Parameters: javaType

Returns: XSType that corresponds to the given javaType

Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com