public abstract class XSType
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANYURI_NAME
the name of the anyURI type.
|
static short |
ANYURI_TYPE |
static java.lang.String |
BASE64BINARY_NAME
The name of the base64Binary type
|
static short |
BASE64BINARY_TYPE |
static java.lang.String |
BOOLEAN_NAME
The name of the boolean type
|
static short |
BOOLEAN_TYPE |
static java.lang.String |
BYTE_NAME
The name of the byte type
|
static short |
BYTE_TYPE |
static short |
CLASS |
static short |
COLLECTION |
static java.lang.String |
DATE_NAME
The name of the date type
|
static short |
DATE_TYPE |
static java.lang.String |
DATETIME_NAME
The name of the the dateTime type
|
static short |
DATETIME_TYPE |
static java.lang.String |
DECIMAL_NAME
The name of the decimal type
|
static short |
DECIMAL_TYPE |
static java.lang.String |
DOUBLE_NAME
The name of the double type
|
static short |
DOUBLE_TYPE |
static java.lang.String |
DURATION_NAME
the name of the duration type
|
static short |
DURATION_TYPE |
static short |
ENTITIES |
static short |
ENTITY |
static java.lang.String |
FLOAT_NAME
The name of the float type
|
static short |
FLOAT_TYPE |
static java.lang.String |
GDAY_NAME
The name of the gDay type.
|
static short |
GDAY_TYPE |
static java.lang.String |
GMONTH_NAME
The name of the gMonth type.
|
static short |
GMONTH_TYPE |
static java.lang.String |
GMONTHDAY_NAME
The name of the gMonthDay type.
|
static short |
GMONTHDAY_TYPE |
static java.lang.String |
GYEAR_NAME
The name of the gYear type.
|
static short |
GYEAR_TYPE |
static java.lang.String |
GYEARMONTH_NAME
The name of the gYearMonth type.
|
static short |
GYEARMONTH_TYPE |
static java.lang.String |
HEXBINARY_NAME
The name of the hexBinary type
|
static short |
HEXBINARY_TYPE |
static java.lang.String |
ID_NAME
The name of the ID type
|
static short |
ID_TYPE |
static java.lang.String |
IDREF_NAME
The name of the IDREF type
|
static short |
IDREF_TYPE |
static java.lang.String |
IDREFS_NAME
The Name of the IDREFS type
|
static short |
IDREFS_TYPE |
static java.lang.String |
INT_NAME
The name of the int type
|
static short |
INT_TYPE |
static java.lang.String |
INTEGER_NAME
The name of the integer type
|
static short |
INTEGER_TYPE |
static java.lang.String |
LANGUAGE_NAME
The name of the language type.
|
static short |
LANGUAGE_TYPE |
static java.lang.String |
LONG_NAME
The name of the long type
|
static short |
LONG_TYPE |
static java.lang.String |
NAME_NAME
The name of the Name type
|
static short |
NAME_TYPE |
static java.lang.String |
NCNAME_NAME
The name of the NCName type
|
static short |
NCNAME_TYPE |
static java.lang.String |
NEGATIVE_INTEGER_NAME
The name of the negative-integer type
|
static short |
NEGATIVE_INTEGER_TYPE |
static java.lang.String |
NMTOKEN_NAME
The name of the NMTOKEN type
|
static short |
NMTOKEN_TYPE |
static java.lang.String |
NMTOKENS_NAME
The of the NMTOKENS type
|
static short |
NMTOKENS_TYPE |
static java.lang.String |
NON_NEGATIVE_INTEGER_NAME
The name of the non-positive-integer type
|
static short |
NON_NEGATIVE_INTEGER_TYPE |
static java.lang.String |
NON_POSITIVE_INTEGER_NAME
The name of the non-positive-integer type
|
static short |
NON_POSITIVE_INTEGER_TYPE |
static java.lang.String |
NORMALIZEDSTRING_NAME
The name of the normalizedString type.
|
static short |
NORMALIZEDSTRING_TYPE |
static java.lang.String |
NOTATION_NAME
the name of the notation type
|
static short |
NOTATION_TYPE |
static short |
NULL |
static java.lang.String |
POSITIVE_INTEGER_NAME
The name of the positive-integer type
|
static short |
POSITIVE_INTEGER_TYPE |
static java.lang.String |
QNAME_NAME
the name of the QName type
|
static short |
QNAME_TYPE |
static java.lang.String |
SHORT_NAME
The name of the short type
|
static short |
SHORT_TYPE |
static java.lang.String |
STRING_NAME
The name of the string type
|
static short |
STRING_TYPE |
static java.lang.String |
TIME_NAME
the name of the time type
|
static short |
TIME_TYPE |
static java.lang.String |
TOKEN_NAME
The name of the token type
|
static short |
TOKEN_TYPE |
static java.lang.String |
UNSIGNED_LONG_NAME
The name of the unsigned-long type
|
static short |
UNSIGNED_LONG_TYPE |
| Modifier | Constructor and Description |
|---|---|
protected |
XSType(short type)
Creates a new XSType of the given type
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createFromJavaObjectCode(java.lang.String variableName)
Returns the String necessary to convert an Object to
an instance of this XSType.
|
java.lang.String |
createToJavaObjectCode(java.lang.String variableName)
Returns the String necessary to convert an instance of this XSType
to an Object.
|
protected static java.lang.String |
escapePattern(java.lang.String str)
Escapes special characters in the given String so that it can
be printed correctly.
|
protected static java.util.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
|
java.lang.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() |
java.lang.String |
newInstanceCode()
Returns the Java code neccessary to create a new instance of the
JType associated with this XSType
|
void |
setAsEnumerated(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,
java.lang.String fixedValue,
java.lang.String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.
|
public static final java.lang.String STRING_NAME
public static final java.lang.String BOOLEAN_NAME
public static final java.lang.String FLOAT_NAME
public static final java.lang.String DOUBLE_NAME
public static final java.lang.String DECIMAL_NAME
public static final java.lang.String DURATION_NAME
public static final java.lang.String DATETIME_NAME
public static final java.lang.String TIME_NAME
public static final java.lang.String DATE_NAME
public static final java.lang.String GYEARMONTH_NAME
public static final java.lang.String GYEAR_NAME
public static final java.lang.String GMONTHDAY_NAME
public static final java.lang.String GDAY_NAME
public static final java.lang.String GMONTH_NAME
public static final java.lang.String HEXBINARY_NAME
public static final java.lang.String BASE64BINARY_NAME
public static final java.lang.String ANYURI_NAME
public static final java.lang.String QNAME_NAME
public static final java.lang.String NOTATION_NAME
public static final java.lang.String NORMALIZEDSTRING_NAME
public static final java.lang.String TOKEN_NAME
public static final java.lang.String LANGUAGE_NAME
public static final java.lang.String IDREFS_NAME
public static final java.lang.String NMTOKEN_NAME
public static java.lang.String NMTOKENS_NAME
public static final java.lang.String NAME_NAME
public static final java.lang.String NCNAME_NAME
public static final java.lang.String ID_NAME
public static final java.lang.String IDREF_NAME
public static final java.lang.String INTEGER_NAME
public static final java.lang.String NON_NEGATIVE_INTEGER_NAME
public static final java.lang.String NON_POSITIVE_INTEGER_NAME
public static final java.lang.String NEGATIVE_INTEGER_NAME
public static final java.lang.String LONG_NAME
public static final java.lang.String INT_NAME
public static final java.lang.String SHORT_NAME
public static final java.lang.String BYTE_NAME
public static final java.lang.String POSITIVE_INTEGER_NAME
public static final java.lang.String UNSIGNED_LONG_NAME
public static final short NULL
public static final short CLASS
public static final short STRING_TYPE
public static final short DURATION_TYPE
public static final short DATETIME_TYPE
public static final short TIME_TYPE
public static final short DATE_TYPE
public static final short GYEARMONTH_TYPE
public static final short GYEAR_TYPE
public static final short GMONTHDAY_TYPE
public static final short GDAY_TYPE
public static final short GMONTH_TYPE
public static final short BOOLEAN_TYPE
public static final short BASE64BINARY_TYPE
public static final short HEXBINARY_TYPE
public static final short FLOAT_TYPE
public static final short DOUBLE_TYPE
public static final short DECIMAL_TYPE
public static final short ANYURI_TYPE
public static final short QNAME_TYPE
public static final short NOTATION_TYPE
public static final short NORMALIZEDSTRING_TYPE
public static final short TOKEN_TYPE
public static final short LANGUAGE_TYPE
public static final short NAME_TYPE
public static final short NCNAME_TYPE
public static final short ID_TYPE
public static final short IDREF_TYPE
public static final short IDREFS_TYPE
public static final short ENTITY
public static final short ENTITIES
public static final short NMTOKEN_TYPE
public static final short NMTOKENS_TYPE
public static final short INTEGER_TYPE
public static final short NON_POSITIVE_INTEGER_TYPE
public static final short NEGATIVE_INTEGER_TYPE
public static final short LONG_TYPE
public static final short INT_TYPE
public static final short SHORT_TYPE
public static final short BYTE_TYPE
public static final short NON_NEGATIVE_INTEGER_TYPE
public static final short POSITIVE_INTEGER_TYPE
public static final short COLLECTION
public static final short UNSIGNED_LONG_TYPE
public abstract JType getJType()
public abstract void setFacets(SimpleType simpleType)
simpleType - the SimpleType containing the facetspublic short getType()
protected static java.util.Enumeration getFacets(SimpleType simpleType)
simpleType - the Simpletype we want the facets forpublic java.lang.String createToJavaObjectCode(java.lang.String variableName)
variableName - the name of the instance variablepublic java.lang.String newInstanceCode()
public java.lang.String createFromJavaObjectCode(java.lang.String variableName)
variableName - the name of the Objectpublic boolean isEnumerated()
public boolean isPrimitive()
public boolean isDateTime()
public java.lang.String getName()
public void setAsEnumerated(boolean enumerated)
enumerated - a boolean indicating whether or not this XSClass
represents an enumerated typepublic abstract void validationCode(JSourceCode jsc, java.lang.String fixedValue, java.lang.String fieldValidatorInstanceName)
fixedValue - a fixed value to use if anyjsc - the JSourceCode to fill in.fieldValidatorInstanceName - the name of the FieldValidator
that the configured TypeValidator should be added to.protected static java.lang.String escapePattern(java.lang.String str)
str - the String to escapeIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com