Public Member Functions | |
XSDate () | |
String | newInstanceCode () |
JType | getJType () |
Date | getMaxExclusive () |
Date | getMaxInclusive () |
Date | getMinExclusive () |
Date | getMinInclusive () |
void | setMaxExclusive (Date max) |
void | setMaxInclusive (Date max) |
void | setMinExclusive (Date min) |
void | setMinInclusive (Date min) |
boolean | hasMinimum () |
boolean | hasMaximum () |
void | setFacets (SimpleType simpleType) |
void | validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName) |
The XML Schema Date type
org.exolab.castor.builder.types.XSDate.XSDate | ( | ) |
JType org.exolab.castor.builder.types.XSDate.getJType | ( | ) | [virtual] |
Returns the JType that this XSType represents
Implements org.exolab.castor.builder.types.XSType.
Referenced by org.exolab.castor.builder.types.XSDate.newInstanceCode().
Date org.exolab.castor.builder.types.XSDate.getMaxExclusive | ( | ) |
Returns the maximum exclusive value that this XSDate can hold.
Referenced by org.exolab.castor.builder.types.XSDate.validationCode().
Date org.exolab.castor.builder.types.XSDate.getMaxInclusive | ( | ) |
Returns the maximum inclusive value that this XSDate can hold.
Referenced by org.exolab.castor.builder.types.XSDate.validationCode().
Date org.exolab.castor.builder.types.XSDate.getMinExclusive | ( | ) |
Returns the minimum exclusive value that this XSDate can hold.
Referenced by org.exolab.castor.builder.types.XSDate.validationCode().
Date org.exolab.castor.builder.types.XSDate.getMinInclusive | ( | ) |
Returns the minimum inclusive value that this XSDate can hold.
Referenced by org.exolab.castor.builder.types.XSDate.validationCode().
boolean org.exolab.castor.builder.types.XSDate.hasMaximum | ( | ) |
Referenced by org.exolab.castor.builder.types.XSDate.validationCode().
boolean org.exolab.castor.builder.types.XSDate.hasMinimum | ( | ) |
Referenced by org.exolab.castor.builder.types.XSDate.validationCode().
String org.exolab.castor.builder.types.XSDate.newInstanceCode | ( | ) |
Returns the Java code necessary to create a new instance of the JType associated with this XSType
Reimplemented from org.exolab.castor.builder.types.XSType.
References org.exolab.castor.builder.types.XSDate.getJType(), and org.exolab.javasource.JType.getName().
void org.exolab.castor.builder.types.XSDate.setFacets | ( | SimpleType | simpleType | ) | [virtual] |
Reads and sets the facets for XSDate override the readFacet method of XSType
simpletype | the Simpletype containing the facets | |
xsType | the XSType to set the facets of |
Implements org.exolab.castor.builder.types.XSType.
References org.exolab.castor.builder.types.XSType.getFacets(), org.exolab.castor.xml.schema.Facet.getName(), org.exolab.castor.xml.schema.Facet.getValue(), org.exolab.castor.builder.types.XSDate.setMaxExclusive(), org.exolab.castor.builder.types.XSDate.setMaxInclusive(), org.exolab.castor.builder.types.XSDate.setMinExclusive(), and org.exolab.castor.builder.types.XSDate.setMinInclusive().
Referenced by org.exolab.castor.builder.TypeConversion.convertType().
void org.exolab.castor.builder.types.XSDate.setMaxExclusive | ( | Date | max | ) |
Sets the maximum exclusive value that this XSDate can hold.
max | the maximum exclusive value this XSDate can be |
Referenced by org.exolab.castor.builder.types.XSDate.setFacets().
void org.exolab.castor.builder.types.XSDate.setMaxInclusive | ( | Date | max | ) |
Sets the maximum inclusive value that this XSDate can hold.
max | the maximum inclusive value this XSDate can be |
Referenced by org.exolab.castor.builder.types.XSDate.setFacets().
void org.exolab.castor.builder.types.XSDate.setMinExclusive | ( | Date | min | ) |
Sets the minimum exclusive value that this XSDate can hold.
max | the minimum exclusive value this XSDate can be |
Referenced by org.exolab.castor.builder.types.XSDate.setFacets().
void org.exolab.castor.builder.types.XSDate.setMinInclusive | ( | Date | min | ) |
Sets the minimum inclusive value that this XSInt can hold.
max | the minimum inclusive value this XSInt can be |
Referenced by org.exolab.castor.builder.types.XSDate.setFacets().
void org.exolab.castor.builder.types.XSDate.validationCode | ( | JSourceCode | jsc, | |
String | fixedValue, | |||
String | fieldValidatorInstanceName | |||
) | [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.
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. |
Implements org.exolab.castor.builder.types.XSType.
References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.types.XSDate.getMaxExclusive(), org.exolab.castor.builder.types.XSDate.getMaxInclusive(), org.exolab.castor.builder.types.XSDate.getMinExclusive(), org.exolab.castor.builder.types.XSDate.getMinInclusive(), org.exolab.castor.builder.types.XSDate.hasMaximum(), org.exolab.castor.builder.types.XSDate.hasMinimum(), org.exolab.javasource.JSourceCode.indent(), org.exolab.castor.types.Date.toString(), and org.exolab.javasource.JSourceCode.unindent().