_maxExclusive
(package private) java.math.BigDecimal _maxExclusive
_maxInclusive
(package private) java.math.BigDecimal _maxInclusive
Facets for Decimal type
_minExclusive
(package private) java.math.BigDecimal _minExclusive
_minInclusive
(package private) java.math.BigDecimal _minInclusive
createFromJavaObjectCode
public String 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
- createFromJavaObjectCode in interface XSType
variableName
- the name of the Object
- the String necessary to convert an Object to an
instance of this XSType
getFractionDigits
public int getFractionDigits()
Returns the fractionDigits facet value of this XSInteger.
- the fractionDigits facet value of this XSInteger.
getJType
public JType getJType()
Returns the JType that this XSType represents
- getJType in interface XSType
- the JType that this XSType represents
getMaxExclusive
public java.math.BigDecimal getMaxExclusive()
Returns the maximum exclusive value that this XSInteger can hold.
- the maximum exclusive value that this XSInteger can hold. If
no maximum exclusive value has been set, Null will be returned
getMaxInclusive
public java.math.BigDecimal getMaxInclusive()
Returns the maximum inclusive value that this XSInteger can hold.
- the maximum inclusive value that this XSInteger can hold. If
no maximum inclusive value has been set, Null will be returned
getMinExclusive
public java.math.BigDecimal getMinExclusive()
Returns the minimum exclusive value that this XSInteger can hold.
- the minimum exclusive value that this XSInteger can hold. If
no minimum exclusive value has been set, Null will be returned
getMinInclusive
public java.math.BigDecimal getMinInclusive()
Returns the minimum inclusive value that this XSInteger can hold.
- the minimum inclusive value that this XSInteger can hold. If
no minimum inclusive value has been set, Null will be returned
getTotalDigits
public int getTotalDigits()
Returns the totalDigits facet value of this XSInteger.
- the totalDigits facet value of this XSInteger.
hasMaximum
public boolean hasMaximum()
hasMinimum
public boolean hasMinimum()
newInstanceCode
public String newInstanceCode()
Returns the Java code neccessary to create a new instance of the
JType associated with this XSType
- newInstanceCode in interface XSType
setFractionDigits
public void setFractionDigits(int fractionDig)
Sets the fractionDigits facet for this XSInteger.
fractionDig
- the value of fractionDigits (must be >=0)
setMaxExclusive
public void setMaxExclusive(java.math.BigDecimal max)
Sets the maximum exclusive value that this XSDecimal can hold.
max
- the maximum exclusive value this XSDecimal can be
setMaxInclusive
public void setMaxInclusive(java.math.BigDecimal max)
Sets the maximum inclusive value that this XSDecimal can hold.
max
- the maximum inclusive value this XSDecimal can be
setMinExclusive
public void setMinExclusive(java.math.BigDecimal min)
Sets the minimum exclusive value that this XSDecimal can hold.
setMinInclusive
public void setMinInclusive(java.math.BigDecimal min)
Sets the minimum inclusive value that this XSDecimalcan hold.
setTotalDigits
public void setTotalDigits(int totalDig)
Sets the totalDigits facet for this XSInteger.
totalDig
- the value of totalDigits (must be >0)
validationCode
public void validationCode(JSourceCode jsc,
String fixedValue,
String fieldValidatorInstanceName)
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.
- validationCode in interface XSType
jsc
- the JSourceCode to fill in.fixedValue
- a fixed value to use if anyfieldValidatorInstanceName
- the name of the FieldValidator
that the configured TypeValidator should be added to.