org.exolab.castor.builder.types

Class XSDouble

public final class XSDouble extends XSPatternBase

The XML Schema double type

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:07:56 $

Author: Keith Visco

Field Summary
DoublemaxExclusive
DoublemaxInclusive
DoubleminExclusive
DoubleminInclusive
Constructor Summary
XSDouble()
XSDouble(boolean asWrapper)
Method Summary
StringcreateFromJavaObjectCode(String variableName)
Returns the String necessary to convert an Object to an instance of this XSType.
StringcreateToJavaObjectCode(String variableName)
Returns the String necessary to convert an instance of this XSType to an Object.
JTypegetJType()
Returns the JType that this XSType represents
DoublegetMaxExclusive()
Returns the maximum exclusive value that this XSReal can hold.
DoublegetMaxInclusive()
Returns the maximum inclusive value that this XSReal can hold.
DoublegetMinExclusive()
Returns the minimum exclusive value that this XSReal can hold.
DoublegetMinInclusive()
Returns the minimum inclusive value that this XSReal can hold.
booleanhasMaximum()
booleanhasMinimum()
voidsetFacets(SimpleType simpleType)
Reads and sets the facets for XSReal
voidsetMaxExclusive(double max)
Sets the maximum exclusive value that this XSReal can hold.
voidsetMaxExclusive(Double max)
Sets the maximum exclusive value that this XSReal can hold.
voidsetMaxInclusive(double max)
Sets the maximum inclusive value that this XSReal can hold.
voidsetMaxInclusive(Double max)
Sets the maximum inclusive value that this XSReal can hold.
voidsetMinExclusive(double min)
Sets the minimum exclusive value that this XSReal can hold.
voidsetMinExclusive(Double min)
Sets the minimum exclusive value that this XSReal can hold.
voidsetMinInclusive(double min)
Sets the minimum inclusive value that this XSReal can hold.
voidsetMinInclusive(Double min)
Sets the minimum inclusive value that this XSReal can hold.
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.

Field Detail

maxExclusive

Double maxExclusive

maxInclusive

Double maxInclusive

minExclusive

Double minExclusive

minInclusive

Double minInclusive

Constructor Detail

XSDouble

public XSDouble()

XSDouble

public XSDouble(boolean asWrapper)

Method Detail

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

Parameters: variableName the name of the Object

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

createToJavaObjectCode

public String createToJavaObjectCode(String variableName)
Returns the String necessary to convert an instance of this XSType to an Object. This method is really only useful for primitive types

Parameters: variableName the name of the instance variable

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

getJType

public JType getJType()
Returns the JType that this XSType represents

Returns: the JType that this XSType represents

getMaxExclusive

public Double getMaxExclusive()
Returns the maximum exclusive value that this XSReal can hold.

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

See Also: XSDouble

getMaxInclusive

public Double getMaxInclusive()
Returns the maximum inclusive value that this XSReal can hold.

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

See Also: XSDouble

getMinExclusive

public Double getMinExclusive()
Returns the minimum exclusive value that this XSReal can hold.

Returns: the minimum exclusive value that this XSReal can hold. If no minimum exclusive value has been set, Null will be returned

See Also: XSDouble XSDouble

getMinInclusive

public Double getMinInclusive()
Returns the minimum inclusive value that this XSReal can hold.

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

See Also: XSDouble

hasMaximum

public boolean hasMaximum()

hasMinimum

public boolean hasMinimum()

setFacets

public void setFacets(SimpleType simpleType)
Reads and sets the facets for XSReal

Parameters: simpleType the SimpleType containing the facets

setMaxExclusive

public void setMaxExclusive(double max)
Sets the maximum exclusive value that this XSReal can hold.

Parameters: max the maximum exclusive value this XSReal can be

See Also: XSDouble

setMaxExclusive

public void setMaxExclusive(Double max)
Sets the maximum exclusive value that this XSReal can hold.

Parameters: max the maximum exclusive value this XSReal can be

See Also: XSDouble

setMaxInclusive

public void setMaxInclusive(double max)
Sets the maximum inclusive value that this XSReal can hold.

Parameters: max the maximum inclusive value this XSReal can be

See Also: XSDouble

setMaxInclusive

public void setMaxInclusive(Double max)
Sets the maximum inclusive value that this XSReal can hold.

Parameters: max the maximum inclusive value this XSReal can be

See Also: XSDouble

setMinExclusive

public void setMinExclusive(double min)
Sets the minimum exclusive value that this XSReal can hold.

Parameters: max the minimum exclusive value this XSReal can be

See Also: XSDouble

setMinExclusive

public void setMinExclusive(Double min)
Sets the minimum exclusive value that this XSReal can hold.

Parameters: max the minimum exclusive value this XSReal can be

See Also: XSDouble

setMinInclusive

public void setMinInclusive(double min)
Sets the minimum inclusive value that this XSReal can hold.

Parameters: max the minimum inclusive value this XSReal can be

See Also: XSDouble

setMinInclusive

public void setMinInclusive(Double min)
Sets the minimum inclusive value that this XSReal can hold.

Parameters: max the minimum inclusive value this XSReal can be

See Also: XSDouble

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.

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.

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com