Public Member Functions | Package Attributes

org.exolab.castor.builder.types.XSDecimal Class Reference

Inheritance diagram for org.exolab.castor.builder.types.XSDecimal:
org.exolab.castor.builder.types.XSType

List of all members.

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

Detailed Description

The decimal XML Schema datatype TODO : handle pattern, enumeration

Author:
Andrew Fawcett

Constructor & Destructor Documentation

org.exolab.castor.builder.types.XSDecimal.XSDecimal (  ) 

Member Function Documentation

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

Parameters:
variableName the name of the Object
Returns:
the String necessary to convert an Object to an instance of this XSType

Reimplemented from org.exolab.castor.builder.types.XSType.

int org.exolab.castor.builder.types.XSDecimal.getFractionDigits (  ) 

Returns the fractionDigits facet value of this XSInteger.

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

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.

Returns:
the maximum exclusive value that this XSInteger can hold. If no maximum exclusive value has been set, Null will be returned
See also:
getMaxInclusive

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.

Returns:
the maximum inclusive value that this XSInteger can hold. If no maximum inclusive value has been set, Null will be returned
See also:
getMaxExclusive

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.

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
setMaxInclusive

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.

Returns:
the minimum inclusive value that this XSInteger can hold. If no minimum inclusive value has been set, Null will be returned
See also:
getMinExclusive

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.

Returns:
the totalDigits facet value of this XSInteger.

Referenced by org.exolab.castor.builder.types.XSDecimal.validationCode().

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.setFractionDigits ( int  fractionDig  ) 

Sets the fractionDigits facet for this XSInteger.

Parameters:
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.

Parameters:
max the maximum exclusive value this XSDecimal can be
See also:
setMaxInclusive

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.

Parameters:
max the maximum inclusive value this XSDecimal can be
See also:
setMaxExclusive

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.

Parameters:
max the minimum exclusive value this XSDecimal can be
See also:
setMinInclusive

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.

Parameters:
max the minimum inclusive value this XSDecimal can be
See also:
setMinExclusive

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.

Parameters:
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.

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.

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().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties