org.exolab.castor.builder.types
public class XSDecimal extends XSPatternBase
Field Summary | |
---|---|
BigDecimal | _maxExclusive |
BigDecimal | _maxInclusive
Facets for Decimal type |
BigDecimal | _minExclusive |
BigDecimal | _minInclusive |
Constructor Summary | |
---|---|
XSDecimal() |
Method Summary | |
---|---|
String | createFromJavaObjectCode(String variableName)
Returns the String necessary to convert an Object to
an instance of this XSType. |
int | getFractionDigits()
Returns the fractionDigits facet value of this XSInteger. |
JType | getJType()
Returns the JType that this XSType represents |
BigDecimal | getMaxExclusive()
Returns the maximum exclusive value that this XSInteger can hold. |
BigDecimal | getMaxInclusive()
Returns the maximum inclusive value that this XSInteger can hold. |
BigDecimal | getMinExclusive()
Returns the minimum exclusive value that this XSInteger can hold. |
BigDecimal | getMinInclusive()
Returns the minimum inclusive value that this XSInteger can hold. |
int | getTotalDigits()
Returns the totalDigits facet value of this XSInteger. |
boolean | hasMaximum() |
boolean | hasMinimum() |
String | newInstanceCode()
Returns the Java code neccessary to create a new instance of the
JType associated with this XSType |
void | setFacets(SimpleType simpleType) |
void | setFractionDigits(int fractionDig)
Sets the fractionDigits facet for this XSInteger. |
void | setMaxExclusive(BigDecimal max)
Sets the maximum exclusive value that this XSDecimal can hold. |
void | setMaxInclusive(BigDecimal max)
Sets the maximum inclusive value that this XSDecimal can hold. |
void | setMinExclusive(BigDecimal min)
Sets the minimum exclusive value that this XSDecimal can hold. |
void | setMinInclusive(BigDecimal min)
Sets the minimum inclusive value that this XSDecimalcan hold. |
void | setTotalDigits(int totalDig)
Sets the totalDigits facet for this XSInteger. |
void | validationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType. |
Parameters: variableName the name of the Object
Returns: the String necessary to convert an Object to an instance of this XSType
Returns: the fractionDigits facet value of this XSInteger.
Returns: the JType that this XSType represents
Returns: the maximum exclusive value that this XSInteger can hold. If no maximum exclusive value has been set, Null will be returned
See Also: XSDecimal
Returns: the maximum inclusive value that this XSInteger can hold. If no maximum inclusive value has been set, Null will be returned
See Also: XSDecimal
Returns: the minimum exclusive value that this XSInteger can hold. If no minimum exclusive value has been set, Null will be returned
Returns: the minimum inclusive value that this XSInteger can hold. If no minimum inclusive value has been set, Null will be returned
See Also: XSDecimal
Returns: the totalDigits facet value of this XSInteger.
Parameters: fractionDig the value of fractionDigits (must be >=0)
Parameters: max the maximum exclusive value this XSDecimal can be
See Also: XSDecimal
Parameters: max the maximum inclusive value this XSDecimal can be
See Also: XSDecimal
Parameters: min the minimum exclusive value this XSDecimal can be
See Also: XSDecimal
Parameters: min the minimum inclusive value this XSDecimal can be
See Also: XSDecimal
Parameters: totalDig the value of totalDigits (must be >0)
Parameters: 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.