Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions

org.exolab.castor.builder.types.XSType Class Reference

Inheritance diagram for org.exolab.castor.builder.types.XSType:
org.exolab.castor.builder.types.XSAnyURI org.exolab.castor.builder.types.XSBinary org.exolab.castor.builder.types.XSBoolean org.exolab.castor.builder.types.XSClass org.exolab.castor.builder.types.XSDate org.exolab.castor.builder.types.XSDateTime org.exolab.castor.builder.types.XSDecimal org.exolab.castor.builder.types.XSDuration org.exolab.castor.builder.types.XSGDay org.exolab.castor.builder.types.XSGMonth org.exolab.castor.builder.types.XSGMonthDay org.exolab.castor.builder.types.XSGYear org.exolab.castor.builder.types.XSGYearMonth org.exolab.castor.builder.types.XSId org.exolab.castor.builder.types.XSIdRef org.exolab.castor.builder.types.XSList org.exolab.castor.builder.types.XSNCName org.exolab.castor.builder.types.XSNMToken org.exolab.castor.builder.types.XSPatternBase org.exolab.castor.builder.types.XSTime

List of all members.

Public Member Functions

abstract JType getJType ()
abstract void setFacets (SimpleType simpleType)
short getType ()
String createToJavaObjectCode (String variableName)
String newInstanceCode ()
String createFromJavaObjectCode (String variableName)
boolean isEnumerated ()
boolean isPrimitive ()
boolean isDateTime ()
String getName ()
void setAsEnumerated (boolean enumerated)
abstract void validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)

Static Public Attributes

static final String STRING_NAME = "string"
static final String BOOLEAN_NAME = "boolean"
static final String FLOAT_NAME = "float"
static final String DOUBLE_NAME = "double"
static final String DECIMAL_NAME = "decimal"
static final String DURATION_NAME = "duration"
static final String DATETIME_NAME = "dateTime"
static final String TIME_NAME = "time"
static final String DATE_NAME = "date"
static final String GYEARMONTH_NAME = "gYearMonth"
static final String GYEAR_NAME = "gYear"
static final String GMONTHDAY_NAME = "gMonthDay"
static final String GDAY_NAME = "gDay"
static final String GMONTH_NAME = "gMonth"
static final String HEXBINARY_NAME = "hexBinary"
static final String BASE64BINARY_NAME = "base64Binary"
static final String ANYURI_NAME = "anyURI"
static final String QNAME_NAME = "QName"
static final String NOTATION_NAME = "NOTATION"
static final String NORMALIZEDSTRING_NAME = "normalizedString"
static final String TOKEN_NAME = "token"
static final String LANGUAGE_NAME = "language"
static final String IDREFS_NAME = "IDREFS"
static final String NMTOKEN_NAME = "NMTOKEN"
static String NMTOKENS_NAME = "NMTOKENS"
static final String NAME_NAME = "Name"
static final String NCNAME_NAME = "NCName"
static final String ID_NAME = "ID"
static final String IDREF_NAME = "IDREF"
static final String INTEGER_NAME = "integer"
static final String NON_NEGATIVE_INTEGER_NAME = "nonNegativeInteger"
static final String NON_POSITIVE_INTEGER_NAME = "nonPositiveInteger"
static final String NEGATIVE_INTEGER_NAME = "negativeInteger"
static final String LONG_NAME = "long"
static final String INT_NAME = "int"
static final String SHORT_NAME = "short"
static final String BYTE_NAME = "byte"
static final String POSITIVE_INTEGER_NAME = "positiveInteger"
static final short NULL = -1
static final short CLASS = 0
static final short STRING_TYPE = 1
static final short DURATION_TYPE = 2
static final short DATETIME_TYPE = 3
static final short TIME_TYPE = 4
static final short DATE_TYPE = 5
static final short GYEARMONTH_TYPE = 6
static final short GYEAR_TYPE = 7
static final short GMONTHDAY_TYPE = 8
static final short GDAY_TYPE = 9
static final short GMONTH_TYPE = 10
static final short BOOLEAN_TYPE = 11
static final short BASE64BINARY_TYPE = 12
static final short HEXBINARY_TYPE = 13
static final short FLOAT_TYPE = 14
static final short DOUBLE_TYPE = 15
static final short DECIMAL_TYPE = 16
static final short ANYURI_TYPE = 17
static final short QNAME_TYPE = 18
static final short NOTATION_TYPE = 19
static final short NORMALIZEDSTRING_TYPE = 20
static final short TOKEN_TYPE = 21
static final short LANGUAGE_TYPE = 22
static final short NAME_TYPE = 23
static final short NCNAME_TYPE = 24
static final short ID_TYPE = 25
static final short IDREF_TYPE = 26
static final short IDREFS_TYPE = 27
static final short ENTITY = 28
static final short ENTITIES = 29
static final short NMTOKEN_TYPE = 30
static final short NMTOKENS_TYPE = 31
static final short INTEGER_TYPE = 32
static final short NON_POSITIVE_INTEGER_TYPE = 33
static final short NEGATIVE_INTEGER_TYPE = 34
static final short LONG_TYPE = 35
static final short INT_TYPE = 36
static final short SHORT_TYPE = 37
static final short BYTE_TYPE = 38
static final short NON_NEGATIVE_INTEGER_TYPE = 39
static final short POSITIVE_INTEGER_TYPE = 44
static final short COLLECTION = 45

Protected Member Functions

 XSType (short type)

Static Protected Member Functions

static Enumeration getFacets (SimpleType simpleType)
static String escapePattern (String str)

Detailed Description

The base XML Schema Type class

Author:
Keith Visco
Version:
Revision:
1.5
Date:
2004/10/01 13:24:47

Constructor & Destructor Documentation

org.exolab.castor.builder.types.XSType.XSType ( short  type  )  [protected]

Creates a new XSType of the given type


Member Function Documentation

String org.exolab.castor.builder.types.XSType.createToJavaObjectCode ( String  variableName  ) 

Returns the String necessary to convert an instance of this XSType to an Object. This method is really only useful for primitive types

Parameters:
variableName the name of the instance variable
Returns:
the String necessary to convert an instance of this XSType to an Object

Reimplemented in org.exolab.castor.builder.types.XSBoolean, org.exolab.castor.builder.types.XSByte, org.exolab.castor.builder.types.XSDouble, org.exolab.castor.builder.types.XSFloat, org.exolab.castor.builder.types.XSInt, org.exolab.castor.builder.types.XSInteger, org.exolab.castor.builder.types.XSLong, and org.exolab.castor.builder.types.XSShort.

Referenced by org.exolab.castor.builder.FieldInfo.createAccessMethods().

abstract JType org.exolab.castor.builder.types.XSType.getJType (  )  [pure virtual]

Returns the JType that this XSType represents

Returns:
the JType that this XSType represents

Implemented in org.exolab.castor.builder.types.XSAnyURI, org.exolab.castor.builder.types.XSBinary, org.exolab.castor.builder.types.XSBoolean, org.exolab.castor.builder.types.XSByte, org.exolab.castor.builder.types.XSClass, org.exolab.castor.builder.types.XSDate, org.exolab.castor.builder.types.XSDateTime, org.exolab.castor.builder.types.XSDecimal, org.exolab.castor.builder.types.XSDouble, org.exolab.castor.builder.types.XSDuration, org.exolab.castor.builder.types.XSFloat, org.exolab.castor.builder.types.XSGDay, org.exolab.castor.builder.types.XSGMonth, org.exolab.castor.builder.types.XSGMonthDay, org.exolab.castor.builder.types.XSGYear, org.exolab.castor.builder.types.XSGYearMonth, org.exolab.castor.builder.types.XSId, org.exolab.castor.builder.types.XSIdRef, org.exolab.castor.builder.types.XSInt, org.exolab.castor.builder.types.XSInteger, org.exolab.castor.builder.types.XSList, org.exolab.castor.builder.types.XSListJ2, org.exolab.castor.builder.types.XSListODMG30, org.exolab.castor.builder.types.XSLong, org.exolab.castor.builder.types.XSNCName, org.exolab.castor.builder.types.XSNMToken, org.exolab.castor.builder.types.XSNormalizedString, org.exolab.castor.builder.types.XSQName, org.exolab.castor.builder.types.XSShort, org.exolab.castor.builder.types.XSString, and org.exolab.castor.builder.types.XSTime.

Referenced by org.exolab.castor.builder.IdentityInfo.createAccessMethods(), org.exolab.castor.builder.FieldInfo.createAccessMethods(), org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods(), org.exolab.castor.builder.CollectionInfo.createAccessMethods(), org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.builder.types.XSType.createFromJavaObjectCode(), org.exolab.castor.builder.FieldInfo.createJavaField(), org.exolab.castor.builder.CollectionInfo.getReadMethod(), and org.exolab.castor.builder.types.XSType.newInstanceCode().

String org.exolab.castor.builder.types.XSType.getName (  ) 

Returns the name of this XSType

Returns:
the name of this XSType

Reimplemented in org.exolab.castor.builder.types.XSClass.

References org.exolab.castor.builder.types.XSType.ANYURI_NAME, org.exolab.castor.builder.types.XSType.ANYURI_TYPE, org.exolab.castor.builder.types.XSType.BASE64BINARY_NAME, org.exolab.castor.builder.types.XSType.BASE64BINARY_TYPE, org.exolab.castor.builder.types.XSType.BOOLEAN_NAME, org.exolab.castor.builder.types.XSType.BOOLEAN_TYPE, org.exolab.castor.builder.types.XSType.BYTE_NAME, org.exolab.castor.builder.types.XSType.BYTE_TYPE, org.exolab.castor.builder.types.XSType.COLLECTION, org.exolab.castor.builder.types.XSType.DATE_NAME, org.exolab.castor.builder.types.XSType.DATE_TYPE, org.exolab.castor.builder.types.XSType.DATETIME_NAME, org.exolab.castor.builder.types.XSType.DATETIME_TYPE, org.exolab.castor.builder.types.XSType.DECIMAL_NAME, org.exolab.castor.builder.types.XSType.DECIMAL_TYPE, org.exolab.castor.builder.types.XSType.DOUBLE_NAME, org.exolab.castor.builder.types.XSType.DOUBLE_TYPE, org.exolab.castor.builder.types.XSType.DURATION_NAME, org.exolab.castor.builder.types.XSType.DURATION_TYPE, org.exolab.castor.builder.types.XSType.FLOAT_NAME, org.exolab.castor.builder.types.XSType.FLOAT_TYPE, org.exolab.castor.builder.types.XSType.GDAY_NAME, org.exolab.castor.builder.types.XSType.GDAY_TYPE, org.exolab.castor.builder.types.XSType.GMONTH_NAME, org.exolab.castor.builder.types.XSType.GMONTH_TYPE, org.exolab.castor.builder.types.XSType.GMONTHDAY_NAME, org.exolab.castor.builder.types.XSType.GMONTHDAY_TYPE, org.exolab.castor.builder.types.XSType.GYEAR_NAME, org.exolab.castor.builder.types.XSType.GYEAR_TYPE, org.exolab.castor.builder.types.XSType.GYEARMONTH_NAME, org.exolab.castor.builder.types.XSType.GYEARMONTH_TYPE, org.exolab.castor.builder.types.XSType.HEXBINARY_NAME, org.exolab.castor.builder.types.XSType.HEXBINARY_TYPE, org.exolab.castor.builder.types.XSType.ID_NAME, org.exolab.castor.builder.types.XSType.ID_TYPE, org.exolab.castor.builder.types.XSType.IDREF_NAME, org.exolab.castor.builder.types.XSType.IDREF_TYPE, org.exolab.castor.builder.types.XSType.IDREFS_NAME, org.exolab.castor.builder.types.XSType.IDREFS_TYPE, org.exolab.castor.builder.types.XSType.INT_TYPE, org.exolab.castor.builder.types.XSType.INTEGER_NAME, org.exolab.castor.builder.types.XSType.INTEGER_TYPE, org.exolab.castor.builder.types.XSType.LANGUAGE_NAME, org.exolab.castor.builder.types.XSType.LANGUAGE_TYPE, org.exolab.castor.builder.types.XSType.LONG_NAME, org.exolab.castor.builder.types.XSType.LONG_TYPE, org.exolab.castor.builder.types.XSType.NAME_NAME, org.exolab.castor.builder.types.XSType.NAME_TYPE, org.exolab.castor.builder.types.XSType.NCNAME_NAME, org.exolab.castor.builder.types.XSType.NCNAME_TYPE, org.exolab.castor.builder.types.XSType.NEGATIVE_INTEGER_NAME, org.exolab.castor.builder.types.XSType.NEGATIVE_INTEGER_TYPE, org.exolab.castor.builder.types.XSType.NMTOKEN_NAME, org.exolab.castor.builder.types.XSType.NMTOKEN_TYPE, org.exolab.castor.builder.types.XSType.NMTOKENS_NAME, org.exolab.castor.builder.types.XSType.NMTOKENS_TYPE, org.exolab.castor.builder.types.XSType.NON_NEGATIVE_INTEGER_NAME, org.exolab.castor.builder.types.XSType.NON_NEGATIVE_INTEGER_TYPE, org.exolab.castor.builder.types.XSType.NON_POSITIVE_INTEGER_NAME, org.exolab.castor.builder.types.XSType.NON_POSITIVE_INTEGER_TYPE, org.exolab.castor.builder.types.XSType.NORMALIZEDSTRING_NAME, org.exolab.castor.builder.types.XSType.NORMALIZEDSTRING_TYPE, org.exolab.castor.builder.types.XSType.POSITIVE_INTEGER_NAME, org.exolab.castor.builder.types.XSType.POSITIVE_INTEGER_TYPE, org.exolab.castor.builder.types.XSType.QNAME_NAME, org.exolab.castor.builder.types.XSType.QNAME_TYPE, org.exolab.castor.builder.types.XSType.SHORT_NAME, org.exolab.castor.builder.types.XSType.SHORT_TYPE, org.exolab.castor.builder.types.XSType.STRING_NAME, org.exolab.castor.builder.types.XSType.STRING_TYPE, org.exolab.castor.builder.types.XSType.TIME_NAME, org.exolab.castor.builder.types.XSType.TIME_TYPE, org.exolab.castor.builder.types.XSType.TOKEN_NAME, and org.exolab.castor.builder.types.XSType.TOKEN_TYPE.

Referenced by org.exolab.castor.builder.types.XSDecimal.setFractionDigits(), org.exolab.castor.builder.types.XSInteger.setTotalDigits(), and org.exolab.castor.builder.types.XSDecimal.setTotalDigits().

short org.exolab.castor.builder.types.XSType.getType (  ) 
boolean org.exolab.castor.builder.types.XSType.isEnumerated (  ) 

Returns true if this XSType represents an enumerated type

Returns:
true if this XSType represents an enumerated type

Referenced by org.exolab.castor.builder.FieldInfo.createAccessMethods(), and org.exolab.castor.builder.FieldInfo.createJavaField().

void org.exolab.castor.builder.types.XSType.setAsEnumerated ( boolean  enumerated  ) 

Sets the enumerated flag for this XSClass

Parameters:
enumerated a boolean indicating whether or not this XSClass represents an enumerated type

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

abstract void org.exolab.castor.builder.types.XSType.validationCode ( JSourceCode  jsc,
String  fixedValue,
String  fieldValidatorInstanceName 
) [pure virtual]

Creates the validation code for an instance of this XSType. The validation code should if necessary create a newly configured TypeValidator, that should then be added to a FieldValidator instance whose name is provided.

Parameters:
fixedValue a fixed value to use if any
jsc the JSourceCode to fill in.
fieldValidatorInstanceName the name of the FieldValidator that the configured TypeValidator should be added to.

Implemented in org.exolab.castor.builder.types.XSAnyURI, org.exolab.castor.builder.types.XSBinary, org.exolab.castor.builder.types.XSBoolean, org.exolab.castor.builder.types.XSByte, org.exolab.castor.builder.types.XSClass, org.exolab.castor.builder.types.XSDate, org.exolab.castor.builder.types.XSDateTime, org.exolab.castor.builder.types.XSDecimal, org.exolab.castor.builder.types.XSDouble, org.exolab.castor.builder.types.XSDuration, org.exolab.castor.builder.types.XSFloat, org.exolab.castor.builder.types.XSGDay, org.exolab.castor.builder.types.XSGMonth, org.exolab.castor.builder.types.XSGMonthDay, org.exolab.castor.builder.types.XSGYear, org.exolab.castor.builder.types.XSGYearMonth, org.exolab.castor.builder.types.XSId, org.exolab.castor.builder.types.XSIdRef, org.exolab.castor.builder.types.XSInt, org.exolab.castor.builder.types.XSInteger, org.exolab.castor.builder.types.XSList, org.exolab.castor.builder.types.XSLong, org.exolab.castor.builder.types.XSNCName, org.exolab.castor.builder.types.XSNMToken, org.exolab.castor.builder.types.XSNormalizedString, org.exolab.castor.builder.types.XSQName, org.exolab.castor.builder.types.XSShort, org.exolab.castor.builder.types.XSString, and org.exolab.castor.builder.types.XSTime.


Member Data Documentation

final String org.exolab.castor.builder.types.XSType.ANYURI_NAME = "anyURI" [static]

the name of the anyURI type.

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.BASE64BINARY_NAME = "base64Binary" [static]

The name of the base64Binary type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.BOOLEAN_NAME = "boolean" [static]

The name of the boolean type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.BYTE_NAME = "byte" [static]

The name of the byte type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.DATE_NAME = "date" [static]

The name of the date type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.DATETIME_NAME = "dateTime" [static]

The name of the the dateTime type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.DECIMAL_NAME = "decimal" [static]

The name of the decimal type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.DOUBLE_NAME = "double" [static]

The name of the double type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.DURATION_NAME = "duration" [static]

the name of the duration type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.FLOAT_NAME = "float" [static]

The name of the float type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.GDAY_NAME = "gDay" [static]

The name of the gDay type.

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.GMONTH_NAME = "gMonth" [static]

The name of the gMonth type.

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.GMONTHDAY_NAME = "gMonthDay" [static]

The name of the gMonthDay type.

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.GYEAR_NAME = "gYear" [static]

The name of the gYear type.

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.GYEARMONTH_NAME = "gYearMonth" [static]

The name of the gYearMonth type.

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.HEXBINARY_NAME = "hexBinary" [static]

The name of the hexBinary type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.ID_NAME = "ID" [static]

The name of the ID type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.IDREF_NAME = "IDREF" [static]

The name of the IDREF type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.IDREFS_NAME = "IDREFS" [static]

The Name of the IDREFS type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.INT_NAME = "int" [static]

The name of the int type

final String org.exolab.castor.builder.types.XSType.INTEGER_NAME = "integer" [static]

The name of the integer type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.LANGUAGE_NAME = "language" [static]

The name of the language type.

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.LONG_NAME = "long" [static]

The name of the long type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.NAME_NAME = "Name" [static]

The name of the Name type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.NCNAME_NAME = "NCName" [static]

The name of the NCName type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.NEGATIVE_INTEGER_NAME = "negativeInteger" [static]

The name of the negative-integer type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.NMTOKEN_NAME = "NMTOKEN" [static]

The name of the NMTOKEN type

Referenced by org.exolab.castor.builder.types.XSType.getName().

The of the NMTOKENS type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.NON_NEGATIVE_INTEGER_NAME = "nonNegativeInteger" [static]

The name of the non-positive-integer type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.NON_POSITIVE_INTEGER_NAME = "nonPositiveInteger" [static]

The name of the non-positive-integer type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.NORMALIZEDSTRING_NAME = "normalizedString" [static]

The name of the normalizedString type.

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.NOTATION_NAME = "NOTATION" [static]

the name of the notation type

final String org.exolab.castor.builder.types.XSType.POSITIVE_INTEGER_NAME = "positiveInteger" [static]

The name of the positive-integer type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.QNAME_NAME = "QName" [static]

the name of the QName type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.SHORT_NAME = "short" [static]

The name of the short type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.STRING_NAME = "string" [static]

The name of the string type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.TIME_NAME = "time" [static]

the name of the time type

Referenced by org.exolab.castor.builder.types.XSType.getName().

final String org.exolab.castor.builder.types.XSType.TOKEN_NAME = "token" [static]

The name of the token type

Referenced by org.exolab.castor.builder.types.XSType.getName().


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