Public Member Functions | |
XSDecimal () | |
String | createFromJavaObjectCode (String variableName) |
java.math.BigDecimal | getMaxExclusive () |
java.math.BigDecimal | getMaxInclusive () |
java.math.BigDecimal | getMinExclusive () |
java.math.BigDecimal | getMinInclusive () |
int | getTotalDigits () |
int | getFractionDigits () |
boolean | hasMaximum () |
boolean | hasMinimum () |
void | setMaxExclusive (java.math.BigDecimal max) |
void | setMaxInclusive (java.math.BigDecimal max) |
void | setMinExclusive (java.math.BigDecimal min) |
void | setMinInclusive (java.math.BigDecimal min) |
void | setTotalDigits (int totalDig) |
void | setFractionDigits (int fractionDig) |
void | setFacets (SimpleType simpleType) |
JType | getJType () |
String | newInstanceCode () |
void | validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName) |
Package Attributes | |
java.math.BigDecimal | _maxInclusive = null |
java.math.BigDecimal | _maxExclusive = null |
java.math.BigDecimal | _minInclusive = null |
java.math.BigDecimal | _minExclusive = null |
The decimal XML Schema datatype TODO : handle pattern, enumeration
org.exolab.castor.builder.types.XSDecimal.XSDecimal | ( | ) |
String org.exolab.castor.builder.types.XSDecimal.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.
int org.exolab.castor.builder.types.XSDecimal.getFractionDigits | ( | ) |
Returns the fractionDigits facet value of this XSInteger.
Referenced by org.exolab.castor.builder.types.XSDecimal.validationCode().
JType org.exolab.castor.builder.types.XSDecimal.getJType | ( | ) | [virtual] |
Returns the JType that this XSType represents
Implements org.exolab.castor.builder.types.XSType.
java.math.BigDecimal org.exolab.castor.builder.types.XSDecimal.getMaxExclusive | ( | ) |
Returns the maximum exclusive value that this XSInteger can hold.
References org.exolab.castor.builder.types.XSDecimal._maxExclusive.
Referenced by org.exolab.castor.builder.types.XSDecimal.validationCode().
java.math.BigDecimal org.exolab.castor.builder.types.XSDecimal.getMaxInclusive | ( | ) |
Returns the maximum inclusive value that this XSInteger can hold.
References org.exolab.castor.builder.types.XSDecimal._maxInclusive.
Referenced by org.exolab.castor.builder.types.XSDecimal.validationCode().
java.math.BigDecimal org.exolab.castor.builder.types.XSDecimal.getMinExclusive | ( | ) |
Returns the minimum exclusive value that this XSInteger can hold.
References org.exolab.castor.builder.types.XSDecimal._minExclusive.
Referenced by org.exolab.castor.builder.types.XSDecimal.validationCode().
java.math.BigDecimal org.exolab.castor.builder.types.XSDecimal.getMinInclusive | ( | ) |
Returns the minimum inclusive value that this XSInteger can hold.
References org.exolab.castor.builder.types.XSDecimal._minInclusive.
Referenced by org.exolab.castor.builder.types.XSDecimal.validationCode().
int org.exolab.castor.builder.types.XSDecimal.getTotalDigits | ( | ) |
Returns the totalDigits facet value of this XSInteger.
Referenced by org.exolab.castor.builder.types.XSDecimal.validationCode().
boolean org.exolab.castor.builder.types.XSDecimal.hasMaximum | ( | ) |
boolean org.exolab.castor.builder.types.XSDecimal.hasMinimum | ( | ) |
String org.exolab.castor.builder.types.XSDecimal.newInstanceCode | ( | ) |
Returns the Java code neccessary to create a new instance of the JType associated with this XSType
Reimplemented from org.exolab.castor.builder.types.XSType.
void org.exolab.castor.builder.types.XSDecimal.setFacets | ( | SimpleType | simpleType | ) | [virtual] |
Reads and sets the facets for XSType
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.XSDecimal.setFractionDigits(), org.exolab.castor.builder.types.XSDecimal.setMaxExclusive(), org.exolab.castor.builder.types.XSDecimal.setMaxInclusive(), org.exolab.castor.builder.types.XSDecimal.setMinExclusive(), org.exolab.castor.builder.types.XSDecimal.setMinInclusive(), org.exolab.castor.builder.types.XSDecimal.setTotalDigits(), and org.exolab.castor.xml.schema.Facet.toInt().
Referenced by org.exolab.castor.builder.TypeConversion.convertType().
void org.exolab.castor.builder.types.XSDecimal.setFractionDigits | ( | int | fractionDig | ) |
Sets the fractionDigits facet for this XSInteger.
fractionDig | the value of fractionDigits (must be >=0) |
References org.exolab.castor.builder.types.XSType.getName().
Referenced by org.exolab.castor.builder.types.XSDecimal.setFacets().
void org.exolab.castor.builder.types.XSDecimal.setMaxExclusive | ( | java.math.BigDecimal | max | ) |
Sets the maximum exclusive value that this XSDecimal can hold.
max | the maximum exclusive value this XSDecimal can be |
References org.exolab.castor.builder.types.XSDecimal._maxExclusive, and org.exolab.castor.builder.types.XSDecimal._maxInclusive.
Referenced by org.exolab.castor.builder.types.XSDecimal.setFacets().
void org.exolab.castor.builder.types.XSDecimal.setMaxInclusive | ( | java.math.BigDecimal | max | ) |
Sets the maximum inclusive value that this XSDecimal can hold.
max | the maximum inclusive value this XSDecimal can be |
References org.exolab.castor.builder.types.XSDecimal._maxExclusive, and org.exolab.castor.builder.types.XSDecimal._maxInclusive.
Referenced by org.exolab.castor.builder.types.XSDecimal.setFacets().
void org.exolab.castor.builder.types.XSDecimal.setMinExclusive | ( | java.math.BigDecimal | min | ) |
Sets the minimum exclusive value that this XSDecimal can hold.
max | the minimum exclusive value this XSDecimal can be |
References org.exolab.castor.builder.types.XSDecimal._minExclusive, and org.exolab.castor.builder.types.XSDecimal._minInclusive.
Referenced by org.exolab.castor.builder.types.XSDecimal.setFacets().
void org.exolab.castor.builder.types.XSDecimal.setMinInclusive | ( | java.math.BigDecimal | min | ) |
Sets the minimum inclusive value that this XSDecimalcan hold.
max | the minimum inclusive value this XSDecimal can be |
References org.exolab.castor.builder.types.XSDecimal._minExclusive, and org.exolab.castor.builder.types.XSDecimal._minInclusive.
Referenced by org.exolab.castor.builder.types.XSDecimal.setFacets().
void org.exolab.castor.builder.types.XSDecimal.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.XSDecimal.setFacets().
void org.exolab.castor.builder.types.XSDecimal.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.XSDecimal.getFractionDigits(), org.exolab.castor.builder.types.XSDecimal.getMaxExclusive(), org.exolab.castor.builder.types.XSDecimal.getMaxInclusive(), org.exolab.castor.builder.types.XSDecimal.getMinExclusive(), org.exolab.castor.builder.types.XSDecimal.getMinInclusive(), org.exolab.castor.builder.types.XSDecimal.getTotalDigits(), org.exolab.castor.builder.types.XSDecimal.hasMaximum(), and org.exolab.castor.builder.types.XSDecimal.hasMinimum().
java.math.BigDecimal org.exolab.castor.builder.types.XSDecimal._maxExclusive = null [package] |
java.math.BigDecimal org.exolab.castor.builder.types.XSDecimal._maxInclusive = null [package] |
java.math.BigDecimal org.exolab.castor.builder.types.XSDecimal._minExclusive = null [package] |
java.math.BigDecimal org.exolab.castor.builder.types.XSDecimal._minInclusive = null [package] |