Public Member Functions | |
XSTime () | |
String | newInstanceCode () |
JType | getJType () |
Time | getMaxExclusive () |
Time | getMaxInclusive () |
Time | getMinExclusive () |
Time | getMinInclusive () |
void | setMaxExclusive (Time max) |
void | setMaxInclusive (Time max) |
void | setMinExclusive (Time min) |
void | setMinInclusive (Time min) |
boolean | hasMinimum () |
boolean | hasMaximum () |
void | setFacets (SimpleType simpleType) |
void | validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName) |
The XML Schema time type
org.exolab.castor.builder.types.XSTime.XSTime | ( | ) |
JType org.exolab.castor.builder.types.XSTime.getJType | ( | ) | [virtual] |
Returns the JType that this XSType represents
Implements org.exolab.castor.builder.types.XSType.
Referenced by org.exolab.castor.builder.types.XSTime.newInstanceCode().
Time org.exolab.castor.builder.types.XSTime.getMaxExclusive | ( | ) |
Returns the maximum exclusive value that this XSTime can hold.
Referenced by org.exolab.castor.builder.types.XSTime.validationCode().
Time org.exolab.castor.builder.types.XSTime.getMaxInclusive | ( | ) |
Returns the maximum inclusive value that this XSTime can hold.
Referenced by org.exolab.castor.builder.types.XSTime.validationCode().
Time org.exolab.castor.builder.types.XSTime.getMinExclusive | ( | ) |
Returns the minimum exclusive value that this XSTime can hold.
Referenced by org.exolab.castor.builder.types.XSTime.validationCode().
Time org.exolab.castor.builder.types.XSTime.getMinInclusive | ( | ) |
Returns the minimum inclusive value that this XSTime can hold.
Referenced by org.exolab.castor.builder.types.XSTime.validationCode().
boolean org.exolab.castor.builder.types.XSTime.hasMaximum | ( | ) |
Referenced by org.exolab.castor.builder.types.XSTime.validationCode().
boolean org.exolab.castor.builder.types.XSTime.hasMinimum | ( | ) |
Referenced by org.exolab.castor.builder.types.XSTime.validationCode().
String org.exolab.castor.builder.types.XSTime.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.XSTime.getJType(), and org.exolab.javasource.JType.getName().
void org.exolab.castor.builder.types.XSTime.setFacets | ( | SimpleType | simpleType | ) | [virtual] |
Reads and sets the facets for XSTime 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.XSTime.setMaxExclusive(), org.exolab.castor.builder.types.XSTime.setMaxInclusive(), org.exolab.castor.builder.types.XSTime.setMinExclusive(), and org.exolab.castor.builder.types.XSTime.setMinInclusive().
Referenced by org.exolab.castor.builder.TypeConversion.convertType().
void org.exolab.castor.builder.types.XSTime.setMaxExclusive | ( | Time | max | ) |
Sets the maximum exclusive value that this XSTime can hold.
max | the maximum exclusive value this XSTime can be |
Referenced by org.exolab.castor.builder.types.XSTime.setFacets().
void org.exolab.castor.builder.types.XSTime.setMaxInclusive | ( | Time | max | ) |
Sets the maximum inclusive value that this XSTime can hold.
max | the maximum inclusive value this XSTime can be |
Referenced by org.exolab.castor.builder.types.XSTime.setFacets().
void org.exolab.castor.builder.types.XSTime.setMinExclusive | ( | Time | min | ) |
Sets the minimum exclusive value that this XSTime can hold.
max | the minimum exclusive value this XSTime can be |
Referenced by org.exolab.castor.builder.types.XSTime.setFacets().
void org.exolab.castor.builder.types.XSTime.setMinInclusive | ( | Time | min | ) |
Sets the minimum inclusive value that this XSTime can hold.
max | the minimum inclusive value this XSTime can be |
Referenced by org.exolab.castor.builder.types.XSTime.setFacets().
void org.exolab.castor.builder.types.XSTime.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.XSTime.getMaxExclusive(), org.exolab.castor.builder.types.XSTime.getMaxInclusive(), org.exolab.castor.builder.types.XSTime.getMinExclusive(), org.exolab.castor.builder.types.XSTime.getMinInclusive(), org.exolab.castor.builder.types.XSTime.hasMaximum(), org.exolab.castor.builder.types.XSTime.hasMinimum(), org.exolab.javasource.JSourceCode.indent(), org.exolab.castor.types.Time.toString(), and org.exolab.javasource.JSourceCode.unindent().