org.exolab.castor.builder.types

Class XSByte

public final class XSByte extends XSPatternBase

The XML Schema Byte type

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

Author: Arnaud Blandin

Field Summary
BytemaxExclusive
BytemaxInclusive
ByteminExclusive
ByteminInclusive
Constructor Summary
XSByte()
XSByte(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
BytegetMaxExclusive()
Returns the maximum exclusive value that this XSByte can hold.
BytegetMaxInclusive()
Returns the maximum inclusive value that this XSByte can hold.
BytegetMinExclusive()
Returns the minimum exclusive value that this XSByte can hold.
BytegetMinInclusive()
Returns the minimum inclusive value that this XSByte can hold.
booleanhasMaximum()
booleanhasMinimum()
voidsetFacets(SimpleType simpleType)
Reads and sets the facets for XSByte override the readFacet method of XSType
voidsetMaxExclusive(byte max)
Sets the maximum exclusive value that this XSByte can hold.
voidsetMaxExclusive(Byte max)
Sets the maximum exclusive value that this XSByte can hold.
voidsetMaxInclusive(byte max)
Sets the maximum inclusive value that this XSByte can hold.
voidsetMaxInclusive(Byte max)
Sets the maximum inclusive value that this XSByte can hold.
voidsetMinExclusive(byte min)
Sets the minimum exclusive value that this XSByte can hold.
voidsetMinExclusive(Byte min)
Sets the minimum exclusive value that this XSByte can hold.
voidsetMinInclusive(byte min)
Sets the minimum inclusive value that this XSByte can hold.
voidsetMinInclusive(Byte min)
Sets the minimum inclusive value that this XSByte can hold.
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.

Field Detail

maxExclusive

Byte maxExclusive

maxInclusive

Byte maxInclusive

minExclusive

Byte minExclusive

minInclusive

Byte minInclusive

Constructor Detail

XSByte

public XSByte()

XSByte

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

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

See Also: XSByte

getMaxInclusive

public Byte getMaxInclusive()
Returns the maximum inclusive value that this XSByte can hold.

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

See Also: XSByte

getMinExclusive

public Byte getMinExclusive()
Returns the minimum exclusive value that this XSByte can hold.

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

See Also: XSByte XSByte

getMinInclusive

public Byte getMinInclusive()
Returns the minimum inclusive value that this XSByte can hold.

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

See Also: XSByte

hasMaximum

public boolean hasMaximum()

hasMinimum

public boolean hasMinimum()

setFacets

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

Parameters: simpletype the Simpletype containing the facets xsType the XSType to set the facets of

See Also: XSType

setMaxExclusive

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

Parameters: max the maximum exclusive value this XSByte can be

See Also: XSByte

setMaxExclusive

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

Parameters: max the maximum exclusive value this XSByte can be

See Also: XSByte

setMaxInclusive

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

Parameters: max the maximum inclusive value this XSByte can be

See Also: XSByte

setMaxInclusive

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

Parameters: max the maximum inclusive value this XSByte can be

See Also: XSByte

setMinExclusive

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

Parameters: max the minimum exclusive value this XSByte can be

See Also: XSByte

setMinExclusive

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

Parameters: max the minimum exclusive value this XSByte can be

See Also: XSByte

setMinInclusive

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

Parameters: max the minimum inclusive value this XSByte can be

See Also: XSByte

setMinInclusive

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

Parameters: max the minimum inclusive value this XSByte can be

See Also: XSByte

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