Public Member Functions | |
XSShort () | |
XSShort (boolean asWrapper) | |
JType | getJType () |
Short | getMaxExclusive () |
Short | getMaxInclusive () |
Short | getMinExclusive () |
Short | getMinInclusive () |
boolean | hasMaximum () |
boolean | hasMinimum () |
void | setMaxExclusive (short max) |
void | setMaxExclusive (Short max) |
void | setMaxInclusive (short max) |
void | setMaxInclusive (Short max) |
void | setMinExclusive (short min) |
void | setMinExclusive (Short min) |
void | setMinInclusive (short min) |
void | setMinInclusive (Short min) |
void | setFacets (SimpleType simpleType) |
String | createToJavaObjectCode (String variableName) |
String | createFromJavaObjectCode (String variableName) |
void | validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName) |
Package Attributes | |
Short | maxInclusive = null |
Short | maxExclusive = null |
Short | minInclusive = null |
Short | minExclusive = null |
The XML Schema Short type
org.exolab.castor.builder.types.XSShort.XSShort | ( | ) |
org.exolab.castor.builder.types.XSShort.XSShort | ( | boolean | asWrapper | ) |
References org.exolab.javasource.JType.Short.
String org.exolab.castor.builder.types.XSShort.createFromJavaObjectCode | ( | String | variableName | ) |
Returns the String necessary to convert an Object to an instance of this XSType. This method is really only useful for primitive types
variableName | the name of the Object |
Reimplemented from org.exolab.castor.builder.types.XSType.
String org.exolab.castor.builder.types.XSShort.createToJavaObjectCode | ( | String | variableName | ) |
Returns the String necessary to convert an instance of this XSType to an Object. This method is really only useful for primitive types
variableName | the name of the instance variable |
Reimplemented from org.exolab.castor.builder.types.XSType.
JType org.exolab.castor.builder.types.XSShort.getJType | ( | ) | [virtual] |
Returns the JType that this XSType represents
Implements org.exolab.castor.builder.types.XSType.
Short org.exolab.castor.builder.types.XSShort.getMaxExclusive | ( | ) |
Returns the maximum exclusive value that this XSShort can hold.
References org.exolab.castor.builder.types.XSShort.maxExclusive.
Referenced by org.exolab.castor.builder.types.XSShort.validationCode().
Short org.exolab.castor.builder.types.XSShort.getMaxInclusive | ( | ) |
Returns the maximum inclusive value that this XSShort can hold.
References org.exolab.castor.builder.types.XSShort.maxInclusive.
Referenced by org.exolab.castor.builder.types.XSShort.validationCode().
Short org.exolab.castor.builder.types.XSShort.getMinExclusive | ( | ) |
Returns the minimum exclusive value that this XSShort can hold.
References org.exolab.castor.builder.types.XSShort.minExclusive.
Referenced by org.exolab.castor.builder.types.XSShort.validationCode().
Short org.exolab.castor.builder.types.XSShort.getMinInclusive | ( | ) |
Returns the minimum inclusive value that this XSShort can hold.
References org.exolab.castor.builder.types.XSShort.minInclusive.
Referenced by org.exolab.castor.builder.types.XSShort.validationCode().
boolean org.exolab.castor.builder.types.XSShort.hasMaximum | ( | ) |
boolean org.exolab.castor.builder.types.XSShort.hasMinimum | ( | ) |
void org.exolab.castor.builder.types.XSShort.setFacets | ( | SimpleType | simpleType | ) | [virtual] |
Reads and sets the facets for XSShort
simpletype | the Simpletype containing the facets |
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.XSShort.setMaxExclusive(), org.exolab.castor.builder.types.XSShort.setMaxInclusive(), org.exolab.castor.builder.types.XSShort.setMinExclusive(), org.exolab.castor.builder.types.XSShort.setMinInclusive(), org.exolab.castor.builder.types.XSPatternBase.setPattern(), and org.exolab.castor.xml.schema.Facet.toShort().
Referenced by org.exolab.castor.builder.TypeConversion.convertType().
void org.exolab.castor.builder.types.XSShort.setMaxExclusive | ( | short | max | ) |
Sets the maximum exclusive value that this XSShort can hold.
max | the maximum exclusive value this XSShort can be |
References org.exolab.castor.builder.types.XSShort.maxExclusive, and org.exolab.castor.builder.types.XSShort.maxInclusive.
Referenced by org.exolab.castor.builder.types.XSShort.setFacets().
void org.exolab.castor.builder.types.XSShort.setMaxExclusive | ( | Short | max | ) |
Sets the maximum exclusive value that this XSShort can hold.
max | the maximum exclusive value this XSShort can be |
References org.exolab.castor.builder.types.XSShort.maxExclusive, and org.exolab.castor.builder.types.XSShort.maxInclusive.
void org.exolab.castor.builder.types.XSShort.setMaxInclusive | ( | Short | max | ) |
Sets the maximum inclusive value that this XSShort can hold.
max | the maximum inclusive value this XSShort can be |
References org.exolab.castor.builder.types.XSShort.maxExclusive, and org.exolab.castor.builder.types.XSShort.maxInclusive.
void org.exolab.castor.builder.types.XSShort.setMaxInclusive | ( | short | max | ) |
Sets the maximum inclusive value that this XSShort can hold.
max | the maximum inclusive value this XSShort can be |
References org.exolab.castor.builder.types.XSShort.maxExclusive, and org.exolab.castor.builder.types.XSShort.maxInclusive.
Referenced by org.exolab.castor.builder.types.XSShort.setFacets().
void org.exolab.castor.builder.types.XSShort.setMinExclusive | ( | Short | min | ) |
Sets the minimum exclusive value that this XSShort can hold.
max | the minimum exclusive value this XSShort can be |
References org.exolab.castor.builder.types.XSShort.minExclusive, and org.exolab.castor.builder.types.XSShort.minInclusive.
void org.exolab.castor.builder.types.XSShort.setMinExclusive | ( | short | min | ) |
Sets the minimum exclusive value that this XSShort can hold.
max | the minimum exclusive value this XSShort can be |
References org.exolab.castor.builder.types.XSShort.minExclusive, and org.exolab.castor.builder.types.XSShort.minInclusive.
Referenced by org.exolab.castor.builder.types.XSShort.setFacets().
void org.exolab.castor.builder.types.XSShort.setMinInclusive | ( | Short | min | ) |
Sets the minimum inclusive value that this XSShort can hold.
max | the minimum inclusive value this XSShort can be |
References org.exolab.castor.builder.types.XSShort.minExclusive, and org.exolab.castor.builder.types.XSShort.minInclusive.
void org.exolab.castor.builder.types.XSShort.setMinInclusive | ( | short | min | ) |
Sets the minimum inclusive value that this XSShort can hold.
max | the minimum inclusive value this XSShort can be |
References org.exolab.castor.builder.types.XSShort.minExclusive, and org.exolab.castor.builder.types.XSShort.minInclusive.
Referenced by org.exolab.castor.builder.types.XSShort.setFacets().
void org.exolab.castor.builder.types.XSShort.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.XSType.escapePattern(), org.exolab.castor.builder.types.XSShort.getMaxExclusive(), org.exolab.castor.builder.types.XSShort.getMaxInclusive(), org.exolab.castor.builder.types.XSShort.getMinExclusive(), org.exolab.castor.builder.types.XSShort.getMinInclusive(), org.exolab.castor.builder.types.XSPatternBase.getPattern(), org.exolab.castor.builder.types.XSShort.hasMaximum(), and org.exolab.castor.builder.types.XSShort.hasMinimum().
Short org.exolab.castor.builder.types.XSShort.maxExclusive = null [package] |
Short org.exolab.castor.builder.types.XSShort.maxInclusive = null [package] |
Short org.exolab.castor.builder.types.XSShort.minExclusive = null [package] |
Short org.exolab.castor.builder.types.XSShort.minInclusive = null [package] |