Public Member Functions | |
XSInteger () | |
XSInteger (boolean asWrapper) | |
JType | getJType () |
Integer | getMaxExclusive () |
Integer | getMaxInclusive () |
Integer | getMinExclusive () |
Integer | getMinInclusive () |
int | getTotalDigits () |
boolean | hasMaximum () |
boolean | hasMinimum () |
void | setMaxExclusive (int max) |
void | setMaxExclusive (Integer max) |
void | setMaxInclusive (int max) |
void | setMaxInclusive (Integer max) |
void | setMinExclusive (int min) |
void | setMinExclusive (Integer min) |
void | setMinInclusive (int min) |
void | setMinInclusive (Integer min) |
void | setTotalDigits (int totalDig) |
void | setFacets (SimpleType simpleType) |
String | createToJavaObjectCode (String variableName) |
String | createFromJavaObjectCode (String variableName) |
void | validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName) |
Package Attributes | |
Integer | maxInclusive = null |
Integer | maxExclusive = null |
Integer | minInclusive = null |
Integer | minExclusive = null |
The XML Schema Integer type
org.exolab.castor.builder.types.XSInteger.XSInteger | ( | ) |
org.exolab.castor.builder.types.XSInteger.XSInteger | ( | boolean | asWrapper | ) |
References org.exolab.javasource.JType.Int.
String org.exolab.castor.builder.types.XSInteger.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.XSInteger.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.XSInteger.getJType | ( | ) | [virtual] |
Returns the JType that this XSType represents
Implements org.exolab.castor.builder.types.XSType.
Integer org.exolab.castor.builder.types.XSInteger.getMaxExclusive | ( | ) |
Returns the maximum exclusive value that this XSInteger can hold.
References org.exolab.castor.builder.types.XSInteger.maxExclusive.
Referenced by org.exolab.castor.builder.types.XSInteger.validationCode().
Integer org.exolab.castor.builder.types.XSInteger.getMaxInclusive | ( | ) |
Returns the maximum inclusive value that this XSInteger can hold.
References org.exolab.castor.builder.types.XSInteger.maxInclusive.
Referenced by org.exolab.castor.builder.types.XSInteger.validationCode().
Integer org.exolab.castor.builder.types.XSInteger.getMinExclusive | ( | ) |
Returns the minimum exclusive value that this XSInteger can hold.
References org.exolab.castor.builder.types.XSInteger.minExclusive.
Referenced by org.exolab.castor.builder.types.XSInteger.validationCode().
Integer org.exolab.castor.builder.types.XSInteger.getMinInclusive | ( | ) |
Returns the minimum inclusive value that this XSInteger can hold.
References org.exolab.castor.builder.types.XSInteger.minInclusive.
Referenced by org.exolab.castor.builder.types.XSInteger.validationCode().
int org.exolab.castor.builder.types.XSInteger.getTotalDigits | ( | ) |
Returns the totalDigits facet value of this XSInteger.
Referenced by org.exolab.castor.builder.types.XSInteger.validationCode().
boolean org.exolab.castor.builder.types.XSInteger.hasMaximum | ( | ) |
boolean org.exolab.castor.builder.types.XSInteger.hasMinimum | ( | ) |
void org.exolab.castor.builder.types.XSInteger.setFacets | ( | SimpleType | simpleType | ) | [virtual] |
Reads and sets the facets for this XSInteger. 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.XSInteger.setMaxExclusive(), org.exolab.castor.builder.types.XSInteger.setMaxInclusive(), org.exolab.castor.builder.types.XSInteger.setMinExclusive(), org.exolab.castor.builder.types.XSInteger.setMinInclusive(), org.exolab.castor.builder.types.XSPatternBase.setPattern(), org.exolab.castor.builder.types.XSInteger.setTotalDigits(), and org.exolab.castor.xml.schema.Facet.toInt().
Referenced by org.exolab.castor.builder.TypeConversion.convertType().
void org.exolab.castor.builder.types.XSInteger.setMaxExclusive | ( | Integer | max | ) |
Sets the maximum exclusive value that this XSInteger can hold.
max | the maximum exclusive value this XSInteger can be |
References org.exolab.castor.builder.types.XSInteger.maxExclusive, and org.exolab.castor.builder.types.XSInteger.maxInclusive.
void org.exolab.castor.builder.types.XSInteger.setMaxExclusive | ( | int | max | ) |
Sets the maximum exclusive value that this XSInteger can hold.
max | the maximum exclusive value this XSInteger can be |
References org.exolab.castor.builder.types.XSInteger.maxExclusive, and org.exolab.castor.builder.types.XSInteger.maxInclusive.
Referenced by org.exolab.castor.builder.types.XSInteger.setFacets(), and org.exolab.castor.builder.types.XSNonPositiveInteger.XSNonPositiveInteger().
void org.exolab.castor.builder.types.XSInteger.setMaxInclusive | ( | int | max | ) |
Sets the maximum inclusive value that this XSInteger can hold.
max | the maximum inclusive value this XSInteger can be |
References org.exolab.castor.builder.types.XSInteger.maxExclusive, and org.exolab.castor.builder.types.XSInteger.maxInclusive.
Referenced by org.exolab.castor.builder.types.XSInteger.setFacets().
void org.exolab.castor.builder.types.XSInteger.setMaxInclusive | ( | Integer | max | ) |
Sets the maximum inclusive value that this XSInteger can hold.
max | the maximum inclusive value this XSInteger can be |
References org.exolab.castor.builder.types.XSInteger.maxExclusive, and org.exolab.castor.builder.types.XSInteger.maxInclusive.
void org.exolab.castor.builder.types.XSInteger.setMinExclusive | ( | int | min | ) |
Sets the minimum exclusive value that this XSInteger can hold.
max | the minimum exclusive value this XSInteger can be |
References org.exolab.castor.builder.types.XSInteger.minExclusive, and org.exolab.castor.builder.types.XSInteger.minInclusive.
Referenced by org.exolab.castor.builder.types.XSInteger.setFacets().
void org.exolab.castor.builder.types.XSInteger.setMinExclusive | ( | Integer | min | ) |
Sets the minimum exclusive value that this XSInteger can hold.
max | the minimum exclusive value this XSInteger can be |
References org.exolab.castor.builder.types.XSInteger.minExclusive, and org.exolab.castor.builder.types.XSInteger.minInclusive.
void org.exolab.castor.builder.types.XSInteger.setMinInclusive | ( | int | min | ) |
Sets the minimum inclusive value that this XSInteger can hold.
max | the minimum inclusive value this XSInteger can be |
References org.exolab.castor.builder.types.XSInteger.minExclusive, and org.exolab.castor.builder.types.XSInteger.minInclusive.
Referenced by org.exolab.castor.builder.types.XSInteger.setFacets(), org.exolab.castor.builder.types.XSNonNegativeInteger.XSNonNegativeInteger(), and org.exolab.castor.builder.types.XSPositiveInteger.XSPositiveInteger().
void org.exolab.castor.builder.types.XSInteger.setMinInclusive | ( | Integer | min | ) |
Sets the minimum inclusive value that this XSInteger can hold.
max | the minimum inclusive value this XSInteger can be |
References org.exolab.castor.builder.types.XSInteger.minExclusive, and org.exolab.castor.builder.types.XSInteger.minInclusive.
void org.exolab.castor.builder.types.XSInteger.setTotalDigits | ( | int | totalDig | ) |
Sets the totalDigits facet for this XSInteger.
totalDig | the value of totalDigits (must be >0) |
References org.exolab.castor.builder.types.XSType.getName().
Referenced by org.exolab.castor.builder.types.XSInteger.setFacets().
void org.exolab.castor.builder.types.XSInteger.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.XSInteger.getMaxExclusive(), org.exolab.castor.builder.types.XSInteger.getMaxInclusive(), org.exolab.castor.builder.types.XSInteger.getMinExclusive(), org.exolab.castor.builder.types.XSInteger.getMinInclusive(), org.exolab.castor.builder.types.XSPatternBase.getPattern(), org.exolab.castor.builder.types.XSInteger.getTotalDigits(), org.exolab.castor.builder.types.XSInteger.hasMaximum(), org.exolab.castor.builder.types.XSInteger.hasMinimum(), and org.exolab.javasource.JType.Int.
Integer org.exolab.castor.builder.types.XSInteger.maxExclusive = null [package] |
Integer org.exolab.castor.builder.types.XSInteger.maxInclusive = null [package] |
Integer org.exolab.castor.builder.types.XSInteger.minExclusive = null [package] |
Integer org.exolab.castor.builder.types.XSInteger.minInclusive = null [package] |