org.exolab.castor.builder.types
public class XSInteger extends XSPatternBase
Version: $Revision: 1.7 $ $Date: 2005/03/05 13:41:44 $
Field Summary | |
---|---|
Integer | maxExclusive |
Integer | maxInclusive |
Integer | minExclusive |
Integer | minInclusive |
Constructor Summary | |
---|---|
XSInteger() | |
XSInteger(boolean asWrapper) |
Method Summary | |
---|---|
String | createFromJavaObjectCode(String variableName)
Returns the String necessary to convert an Object to
an instance of this XSType. |
String | createToJavaObjectCode(String variableName)
Returns the String necessary to convert an instance of this XSType
to an Object. |
JType | getJType()
Returns the JType that this XSType represents |
Integer | getMaxExclusive()
Returns the maximum exclusive value that this XSInteger can hold. |
Integer | getMaxInclusive()
Returns the maximum inclusive value that this XSInteger can hold. |
Integer | getMinExclusive()
Returns the minimum exclusive value that this XSInteger can hold. |
Integer | 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() |
void | setFacets(SimpleType simpleType)
Reads and sets the facets for this XSInteger.
override the readFacet method of XSType |
void | setMaxExclusive(int max)
Sets the maximum exclusive value that this XSInteger can hold. |
void | setMaxExclusive(Integer max)
Sets the maximum exclusive value that this XSInteger can hold. |
void | setMaxInclusive(int max)
Sets the maximum inclusive value that this XSInteger can hold. |
void | setMaxInclusive(Integer max)
Sets the maximum inclusive value that this XSInteger can hold. |
void | setMinExclusive(int min)
Sets the minimum exclusive value that this XSInteger can hold. |
void | setMinExclusive(Integer min)
Sets the minimum exclusive value that this XSInteger can hold. |
void | setMinInclusive(int min)
Sets the minimum inclusive value that this XSInteger can hold. |
void | setMinInclusive(Integer min)
Sets the minimum inclusive value that this XSInteger can 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
Parameters: variableName the name of the instance variable
Returns: the String necessary to convert an instance of this XSType to an Object
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: XSInteger
Returns: the maximum inclusive value that this XSInteger can hold. If no maximum inclusive value has been set, Null will be returned
See Also: XSInteger
Returns: the minimum exclusive value that this XSInteger can hold. If no minimum exclusive value has been set, Null will be returned
See Also: getMinInclusive
Returns: the minimum inclusive value that this XSInteger can hold. If no minimum inclusive value has been set, Null will be returned
See Also: XSInteger
Returns: the totalDigits facet value of this XSInteger.
Parameters: simpleType the Simpletype containing the facets
See Also: XSType
Parameters: max the maximum exclusive value this XSInteger can be
Parameters: max the maximum exclusive value this XSInteger can be
Parameters: max the maximum inclusive value this XSInteger can be
Parameters: max the maximum inclusive value this XSInteger can be
Parameters: min the minimum exclusive value this XSInteger can be
Parameters: min the minimum exclusive value this XSInteger can be
Parameters: min the minimum inclusive value this XSInteger can be
Parameters: min the minimum inclusive value this XSInteger can be
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.