Classes | Public Member Functions | Static Public Member Functions

org.exolab.castor.builder.TypeConversion Class Reference

List of all members.

Classes

class  TypeNames

Public Member Functions

 TypeConversion (BuilderConfiguration config)
XSType convertType (SimpleType simpleType)
XSType convertType (SimpleType simpleType, String packageName)
XSType convertType (SimpleType simpleType, boolean useWrapper, String packageName)

Static Public Member Functions

static XSType convertType (String javaType)

Detailed Description

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

Author:
Keith Visco
Arnaud Blandin
Version:
Revision:
1.6
Date:
2004/10/01 13:24:44

Constructor & Destructor Documentation

org.exolab.castor.builder.TypeConversion.TypeConversion ( BuilderConfiguration  config  ) 

Creates a new TypeConversion instance

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

Member Function Documentation

XSType org.exolab.castor.builder.TypeConversion.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

References org.exolab.castor.builder.BuilderConfiguration.usePrimitiveWrapper().

Referenced by org.exolab.castor.builder.TypeConversion.convertType(), org.exolab.castor.builder.SourceFactory.createSourceCode(), and org.exolab.castor.builder.binding.XMLBindingComponent.getJavaType().

static XSType org.exolab.castor.builder.TypeConversion.convertType ( String  javaType  )  [static]

Returns the XSType that corresponds to the given javaType

Parameters:
javaType 
Returns:
XSType org.exolab.castor.builder.TypeConversion.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

References org.exolab.castor.builder.TypeConversion.convertType(), org.exolab.castor.builder.types.XSType.DATE_TYPE, org.exolab.castor.builder.types.XSType.DATETIME_TYPE, org.exolab.castor.builder.types.XSType.DECIMAL_TYPE, org.exolab.castor.builder.types.XSType.DURATION_TYPE, org.exolab.castor.builder.types.XSType.FLOAT_TYPE, org.exolab.castor.builder.types.XSType.GDAY_TYPE, org.exolab.castor.xml.schema.XMLType.getBaseType(), org.exolab.castor.xml.schema.SimpleType.getBuiltInBaseType(), org.exolab.castor.xml.schema.XMLType.getName(), org.exolab.castor.xml.schema.SimpleType.getParent(), org.exolab.castor.xml.schema.XMLType.getSchema(), org.exolab.castor.xml.schema.SimpleType.getStructureType(), org.exolab.castor.xml.schema.Schema.getTargetNamespace(), org.exolab.castor.xml.schema.SimpleType.getTypeCode(), org.exolab.castor.builder.types.XSType.GMONTH_TYPE, org.exolab.castor.builder.types.XSType.GMONTHDAY_TYPE, org.exolab.castor.builder.types.XSType.GYEAR_TYPE, org.exolab.castor.builder.types.XSType.GYEARMONTH_TYPE, org.exolab.castor.xml.schema.SimpleType.hasFacet(), org.exolab.castor.builder.types.XSType.INT_TYPE, org.exolab.castor.builder.types.XSType.INTEGER_TYPE, org.exolab.castor.xml.schema.SimpleType.isBuiltInType(), org.exolab.castor.builder.types.XSType.LANGUAGE_TYPE, org.exolab.castor.builder.BuilderConfiguration.lookupPackageByNamespace(), org.exolab.castor.builder.types.XSType.NCNAME_TYPE, org.exolab.castor.builder.types.XSType.NEGATIVE_INTEGER_TYPE, org.exolab.castor.builder.types.XSType.NON_NEGATIVE_INTEGER_TYPE, org.exolab.castor.builder.types.XSType.NORMALIZEDSTRING_TYPE, org.exolab.castor.builder.types.XSType.POSITIVE_INTEGER_TYPE, org.exolab.castor.builder.types.XSType.QNAME_TYPE, org.exolab.castor.builder.types.XSType.setAsEnumerated(), org.exolab.castor.builder.types.XSTime.setFacets(), org.exolab.castor.builder.types.XSShort.setFacets(), org.exolab.castor.builder.types.XSString.setFacets(), org.exolab.castor.builder.types.XSQName.setFacets(), org.exolab.castor.builder.types.XSNormalizedString.setFacets(), org.exolab.castor.builder.types.XSLong.setFacets(), org.exolab.castor.builder.types.XSInt.setFacets(), org.exolab.castor.builder.types.XSInteger.setFacets(), org.exolab.castor.builder.types.XSGYear.setFacets(), org.exolab.castor.builder.types.XSGYearMonth.setFacets(), org.exolab.castor.builder.types.XSGMonth.setFacets(), org.exolab.castor.builder.types.XSGMonthDay.setFacets(), org.exolab.castor.builder.types.XSGDay.setFacets(), org.exolab.castor.builder.types.XSFloat.setFacets(), org.exolab.castor.builder.types.XSDecimal.setFacets(), org.exolab.castor.builder.types.XSDuration.setFacets(), org.exolab.castor.builder.types.XSDouble.setFacets(), org.exolab.castor.builder.types.XSDate.setFacets(), org.exolab.castor.builder.types.XSByte.setFacets(), org.exolab.castor.builder.types.XSType.SHORT_TYPE, org.exolab.castor.builder.types.XSType.STRING_TYPE, org.exolab.castor.builder.types.XSType.TIME_TYPE, and org.exolab.castor.builder.types.XSType.TOKEN_TYPE.

XSType org.exolab.castor.builder.TypeConversion.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

References org.exolab.castor.builder.TypeConversion.convertType(), and org.exolab.castor.builder.BuilderConfiguration.usePrimitiveWrapper().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties