org.exolab.castor.builder.types

Class XSUnsignedLong

public class XSUnsignedLong extends XSPatternBase

The XML Schema long type

Version: $Revision: 6317 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $

Author: Keith Visco

Field Summary
BigIntegermaxExclusive
BigIntegermaxInclusive
BigIntegerminExclusive
BigIntegerminInclusive
Constructor Summary
XSUnsignedLong()
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
BigIntegergetMaxExclusive()
Returns the maximum exclusive value that this XSLong can hold.
BigIntegergetMaxInclusive()
Returns the maximum inclusive value that this XSLong can hold.
BigIntegergetMinExclusive()
Returns the minimum exclusive value that this XSLong can hold.
BigIntegergetMinInclusive()
Returns the minimum inclusive value that this XSLong can hold.
booleanhasMaximum()
booleanhasMinimum()
StringnewInstanceCode()
voidsetFacets(SimpleType simpleType)
Reads and sets the facets for XSTimeDuration override the readFacet method of XSType
voidsetMaxExclusive(BigInteger max)
Sets the maximum exclusive value that this XSLong can hold.
voidsetMaxInclusive(BigInteger max)
Sets the maximum inclusive value that this XSLong can hold.
voidsetMinExclusive(BigInteger min)
Sets the minimum exclusive value that this XSLong can hold.
voidsetMinInclusive(BigInteger min)
Sets the minimum inclusive value that this XSLong can hold.
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.

Field Detail

maxExclusive

BigInteger maxExclusive

maxInclusive

BigInteger maxInclusive

minExclusive

BigInteger minExclusive

minInclusive

BigInteger minInclusive

Constructor Detail

XSUnsignedLong

public XSUnsignedLong()

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 BigInteger getMaxExclusive()
Returns the maximum exclusive value that this XSLong can hold.

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

See Also: XSUnsignedLong

getMaxInclusive

public BigInteger getMaxInclusive()
Returns the maximum inclusive value that this XSLong can hold.

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

See Also: XSUnsignedLong

getMinExclusive

public BigInteger getMinExclusive()
Returns the minimum exclusive value that this XSLong can hold.

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

See Also: getMinInclusive

getMinInclusive

public BigInteger getMinInclusive()
Returns the minimum inclusive value that this XSLong can hold.

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

See Also: XSUnsignedLong

hasMaximum

public boolean hasMaximum()

hasMinimum

public boolean hasMinimum()

newInstanceCode

public String newInstanceCode()

setFacets

public void setFacets(SimpleType simpleType)
Reads and sets the facets for XSTimeDuration override the readFacet method of XSType

Parameters: simpleType the Simpletype containing the facets

See Also: XSType

setMaxExclusive

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

Parameters: max the maximum exclusive value this XSLong can be

See Also:

setMaxInclusive

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

Parameters: max the maximum inclusive value this XSLong can be

See Also:

setMinExclusive

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

Parameters: min the minimum exclusive value this XSLong can be

See Also:

setMinInclusive

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

Parameters: min the minimum inclusive value this XSLong can be

See Also:

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-2006. All rights reserved http://www.intalio.com