org.exolab.castor.builder.types
public abstract class XSType extends Object
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:01 $
Field Summary | |
---|---|
static String | ANYURI_NAME
the name of the anyURI type. |
static short | ANYURI_TYPE |
static String | BASE64BINARY_NAME
The name of the base64Binary type |
static short | BASE64BINARY_TYPE |
static String | BOOLEAN_NAME
The name of the boolean type |
static short | BOOLEAN_TYPE |
static String | BYTE_NAME
The name of the byte type |
static short | BYTE_TYPE |
static short | CLASS |
static short | COLLECTION |
static String | DATETIME_NAME
The name of the the dateTime type |
static short | DATETIME_TYPE |
static String | DATE_NAME
The name of the date type |
static short | DATE_TYPE |
static String | DECIMAL_NAME
The name of the decimal type
|
static short | DECIMAL_TYPE |
static String | DOUBLE_NAME
The name of the double type
|
static short | DOUBLE_TYPE |
static String | DURATION_NAME
the name of the duration type |
static short | DURATION_TYPE |
static short | ENTITIES |
static short | ENTITY |
static String | FLOAT_NAME
The name of the float type |
static short | FLOAT_TYPE |
static String | GDAY_NAME
The name of the gDay type. |
static short | GDAY_TYPE |
static String | GMONTHDAY_NAME
The name of the gMonthDay type. |
static short | GMONTHDAY_TYPE |
static String | GMONTH_NAME
The name of the gMonth type. |
static short | GMONTH_TYPE |
static String | GYEARMONTH_NAME
The name of the gYearMonth type. |
static short | GYEARMONTH_TYPE |
static String | GYEAR_NAME
The name of the gYear type. |
static short | GYEAR_TYPE |
static String | HEXBINARY_NAME
The name of the hexBinary type |
static short | HEXBINARY_TYPE |
static String | IDREFS_NAME
The Name of the IDREFS type |
static short | IDREFS_TYPE |
static String | IDREF_NAME
The name of the IDREF type
|
static short | IDREF_TYPE |
static String | ID_NAME
The name of the ID type
|
static short | ID_TYPE |
static String | INTEGER_NAME
The name of the integer type
|
static short | INTEGER_TYPE |
static String | INT_NAME
The name of the int type |
static short | INT_TYPE |
static String | LANGUAGE_NAME
The name of the language type. |
static short | LANGUAGE_TYPE |
static String | LONG_NAME
The name of the long type
|
static short | LONG_TYPE |
static String | NAME_NAME
The name of the Name type |
static short | NAME_TYPE |
static String | NCNAME_NAME
The name of the NCName type |
static short | NCNAME_TYPE |
static String | NEGATIVE_INTEGER_NAME
The name of the negative-integer type
|
static short | NEGATIVE_INTEGER_TYPE |
static String | NMTOKENS_NAME
The of the NMTOKENS type |
static short | NMTOKENS_TYPE |
static String | NMTOKEN_NAME
The name of the NMTOKEN type
|
static short | NMTOKEN_TYPE |
static String | NON_NEGATIVE_INTEGER_NAME
The name of the non-positive-integer type |
static short | NON_NEGATIVE_INTEGER_TYPE |
static String | NON_POSITIVE_INTEGER_NAME
The name of the non-positive-integer type |
static short | NON_POSITIVE_INTEGER_TYPE |
static String | NORMALIZEDSTRING_NAME
The name of the normalizedString type. |
static short | NORMALIZEDSTRING_TYPE |
static String | NOTATION_NAME
the name of the notation type |
static short | NOTATION_TYPE |
static short | NULL |
static String | POSITIVE_INTEGER_NAME
The name of the positive-integer type
|
static short | POSITIVE_INTEGER_TYPE |
static String | QNAME_NAME
the name of the QName type |
static short | QNAME_TYPE |
static String | SHORT_NAME
The name of the short type |
static short | SHORT_TYPE |
static String | STRING_NAME
The name of the string type |
static short | STRING_TYPE |
static String | TIME_NAME
the name of the time type |
static short | TIME_TYPE |
static String | TOKEN_NAME
The name of the token type |
static short | TOKEN_TYPE |
Constructor Summary | |
---|---|
protected | XSType(short type)
Creates a new XSType of the given type
|
Method Summary | |
---|---|
String | createFromJavaObjectCode(String variableName)
Returns the String necessary to convert an Object to
an instance of this XSType. |
String | createToJavaObjectCode(String variableName)
Returns the String necessary to convert an instance of this XSType
to an Object. |
protected static String | escapePattern(String str)
Escapes special characters in the given String so that it can
be printed correctly.
|
protected static Enumeration | getFacets(SimpleType simpleType)
Returns a list of Facets from the simpleType
(duplicate facets due to extension are filtered out) |
abstract JType | getJType()
Returns the JType that this XSType represents |
String | getName()
Returns the name of this XSType |
short | getType()
Returns the type of this XSType |
boolean | isDateTime()
Returns true if the XSType represents an
XML Schema date/time type |
boolean | isEnumerated()
Returns true if this XSType represents an enumerated type |
boolean | isPrimitive() |
String | newInstanceCode()
Returns the Java code neccessary to create a new instance of the
JType associated with this XSType |
void | setAsEnumertated(boolean enumerated)
Sets the enumerated flag for this XSClass |
abstract void | setFacets(SimpleType simpleType)
Reads and sets the facets for XSType |
abstract void | validationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType. |
Parameters: variableName the name of the Object
Returns: the String necessary to convert an Object to an instance of this XSType
Parameters: variableName the name of the instance variable
Returns: the String necessary to convert an instance of this XSType to an Object
Parameters: str the String to escape
Returns: the escaped String, or null if the given String was null.
Parameters: simpletype the Simpletype we want the facets for
Returns: Unique list of facets from the simple type
Returns: the JType that this XSType represents
Returns: the name of this XSType
Returns: the type of this XSType
Returns: true if the XSType represents an XML Schema date/time type
Returns: true if this XSType represents an enumerated type
Parameters: enumerated a boolean indicating whether or not this XSClass represents an enumerated type
Parameters: simpleType the SimpleType containing the facets
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.