AbstractPatternFacet
, XSClass
, XSListType
public abstract class XSType
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static short |
ANYURI_TYPE |
xsd:anyURI.
|
static short |
BASE64BINARY_TYPE |
xsd:base64Binary.
|
static short |
BOOLEAN_TYPE |
xsd:boolean.
|
static short |
BYTE_TYPE |
xsd:byte.
|
static short |
CLASS |
A user-defined type.
|
static short |
COLLECTION |
A collection type.
|
static short |
DATE_TYPE |
xsd:date.
|
static short |
DATETIME_TYPE |
xsd:dateTime.
|
static short |
DECIMAL_TYPE |
xsd:decimal.
|
static short |
DOUBLE_TYPE |
xsd:double.
|
static short |
DURATION_TYPE |
xsd:duration.
|
static short |
ENTITIES |
xsd:ENTITIES.
|
static short |
ENTITY |
xsd:ENTITY.
|
static short |
FLOAT_TYPE |
xsd:float.
|
static short |
GDAY_TYPE |
xsd:gDay.
|
static short |
GMONTH_TYPE |
xsd:gMonth.
|
static short |
GMONTHDAY_TYPE |
xsd:gMonthDay.
|
static short |
GYEAR_TYPE |
xsd:gYear.
|
static short |
GYEARMONTH_TYPE |
xsd:gYearMonth.
|
static short |
HEXBINARY_TYPE |
xsd:hexBinary.
|
static short |
ID_TYPE |
xsd:ID.
|
static short |
IDREF_TYPE |
xsd:IDREF.
|
static short |
IDREFS_TYPE |
xsd:IDREFS.
|
static short |
INT_TYPE |
xsd:int.
|
static short |
INTEGER_TYPE |
xsd:integer.
|
static short |
LANGUAGE_TYPE |
xsd:language.
|
static short |
LONG_TYPE |
xsd:long.
|
static short |
NAME_TYPE |
xsd:name.
|
static short |
NCNAME_TYPE |
xsd:NCNAME.
|
static short |
NEGATIVE_INTEGER_TYPE |
xsd:negativeInteger.
|
static short |
NMTOKEN_TYPE |
xsd:NMTOKEN.
|
static short |
NMTOKENS_TYPE |
xsd:NMTOKENS.
|
static short |
NON_NEGATIVE_INTEGER_TYPE |
xsd:nonNegativeInteger.
|
static short |
NON_POSITIVE_INTEGER_TYPE |
xsd:nonPositiveInteger.
|
static short |
NORMALIZEDSTRING_TYPE |
xsd:normalizedString.
|
static short |
NOTATION_TYPE |
xsd:notation.
|
static short |
NULL |
Value meaning the type is unassigned.
|
static short |
POSITIVE_INTEGER_TYPE |
xsd:positiveInteger.
|
static short |
QNAME_TYPE |
xsd:QName.
|
static short |
SHORT_TYPE |
xsd:short.
|
static short |
STRING_TYPE |
xsd:string.
|
static short |
TIME_TYPE |
xsd:time.
|
static short |
TOKEN_TYPE |
xsd:token.
|
static short |
UNSIGNED_BYTE_TYPE |
xsd:unsignedByte.
|
static short |
UNSIGNED_INT_TYPE |
xsd:unsignedInt.
|
static short |
UNSIGNED_LONG_TYPE |
xsd:unsignedLong.
|
static short |
UNSIGNED_SHORT_TYPE |
xsd:unsignedShort.
|
Constructor | Description |
---|---|
XSType() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
createDefaultValueWithString(java.lang.String variableName) |
Creates source code for an additional constructor that deals with default
values as specified in the XML schema instance.
|
abstract java.lang.String |
createFromJavaObjectCode(java.lang.String variableName) |
Returns the string necessary to convert an Object to an instance of this
XSType.
|
abstract java.lang.String |
createToJavaObjectCode(java.lang.String variableName) |
Returns the string necessary to convert an instance of this XSType to an
Object.
|
abstract JType |
getJType() |
Returns the JType that this XSType represents.
|
abstract java.lang.String |
getName() |
Returns the name of this XSType.
|
abstract short |
getType() |
Returns the type of this XSType.
|
boolean |
isCollection() |
Returns true if this XSType represents a collection.
|
abstract 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.
|
abstract boolean |
isPrimitive() |
Returns true if this XSType represents a primitive type.
|
abstract 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.
|
protected abstract void |
setFacet(Facet facet) |
Set the given facet for XSType if applicable.
|
void |
setFacets(SimpleType simpleType) |
Reads and sets the facets for XSType.
|
abstract void |
validationCode(JSourceCode jsc,
java.lang.String fixedValue,
java.lang.String validatorInstanceName) |
Creates the validation code for an instance of this XSType.
|
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 static final short UNSIGNED_SHORT_TYPE
public static final short UNSIGNED_BYTE_TYPE
public static final short UNSIGNED_INT_TYPE
public final boolean isEnumerated()
public final void setAsEnumerated(boolean enumerated)
enumerated
- A boolean indicating whether or not this XSClass represents an
enumerated type.public abstract java.lang.String getName()
public abstract short getType()
public abstract boolean isPrimitive()
public abstract boolean isDateTime()
public boolean isCollection()
public abstract JType getJType()
public abstract java.lang.String newInstanceCode()
public abstract java.lang.String createToJavaObjectCode(java.lang.String variableName)
variableName
- The name of the instance variable.public abstract java.lang.String createFromJavaObjectCode(java.lang.String variableName)
variableName
- The name of the Object.public java.lang.String createDefaultValueWithString(java.lang.String variableName)
variableName
- Name of the constructor argument.public final void setFacets(SimpleType simpleType)
simpleType
- The SimpleType containing the facets.protected abstract void setFacet(Facet facet)
facet
- The facet to set for XSType.public abstract void validationCode(JSourceCode jsc, java.lang.String fixedValue, java.lang.String validatorInstanceName)
jsc
- The JSourceCode to fill in.fixedValue
- A fixed value to use if any.validatorInstanceName
- The name of the FieldValidator that the configured
TypeValidator should be added to.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com