org.exolab.castor.builder
Class TypeConversion

java.lang.Object
  extended byorg.exolab.castor.builder.TypeConversion

public class TypeConversion
extends java.lang.Object

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

Version:
$Revision: 1.4 $ $Date: 2003/11/10 06:22:38 $
Author:
Keith Visco, Arnaud Blandin

Constructor Summary
TypeConversion(BuilderConfiguration config)
          Creates a new TypeConversion instance
 
Method Summary
 org.exolab.castor.builder.types.XSType convertType(org.exolab.castor.xml.schema.SimpleType simpleType)
          Converts the given Simpletype to the appropriate XSType.
 org.exolab.castor.builder.types.XSType convertType(org.exolab.castor.xml.schema.SimpleType simpleType, boolean useWrapper, java.lang.String packageName)
          Converts the given Simpletype to the appropriate XSType.
 org.exolab.castor.builder.types.XSType convertType(org.exolab.castor.xml.schema.SimpleType simpleType, java.lang.String packageName)
          Converts the given Simpletype to the appropriate XSType.
static org.exolab.castor.builder.types.XSType convertType(java.lang.String javaType)
          Returns the XSType that corresponds to the given javaType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 org.exolab.castor.builder.types.XSType convertType(org.exolab.castor.xml.schema.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 org.exolab.castor.builder.types.XSType convertType(org.exolab.castor.xml.schema.SimpleType simpleType,
                                                          java.lang.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 org.exolab.castor.builder.types.XSType convertType(org.exolab.castor.xml.schema.SimpleType simpleType,
                                                          boolean useWrapper,
                                                          java.lang.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 org.exolab.castor.builder.types.XSType convertType(java.lang.String javaType)
Returns the XSType that corresponds to the given javaType

Parameters:
javaType -
Returns:


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