org.exolab.castor.builder.types

Class XSTime

public final class XSTime extends XSType

The XML Schema time type

Version: $Revision: 1.3 $ $Date: 2005/03/05 13:41:44 $

Author: Arnaud Blandin

Constructor Summary
XSTime()
Method Summary
JTypegetJType()
Returns the JType that this XSType represents
TimegetMaxExclusive()
Returns the maximum exclusive value that this XSTime can hold.
TimegetMaxInclusive()
Returns the maximum inclusive value that this XSTime can hold.
TimegetMinExclusive()
Returns the minimum exclusive value that this XSTime can hold.
TimegetMinInclusive()
Returns the minimum inclusive value that this XSTime can hold.
booleanhasMaximum()
booleanhasMinimum()
StringnewInstanceCode()
Returns the Java code necessary to create a new instance of the JType associated with this XSType
voidsetFacets(SimpleType simpleType)
Reads and sets the facets for XSTime override the readFacet method of XSType
voidsetMaxExclusive(Time max)
Sets the maximum exclusive value that this XSTime can hold.
voidsetMaxInclusive(Time max)
Sets the maximum inclusive value that this XSTime can hold.
voidsetMinExclusive(Time min)
Sets the minimum exclusive value that this XSTime can hold.
voidsetMinInclusive(Time min)
Sets the minimum inclusive value that this XSTime can hold.
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.

Constructor Detail

XSTime

public XSTime()

Method Detail

getJType

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

Returns: the JType that this XSType represents

getMaxExclusive

public Time getMaxExclusive()
Returns the maximum exclusive value that this XSTime can hold.

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

See Also: XSTime

getMaxInclusive

public Time getMaxInclusive()
Returns the maximum inclusive value that this XSTime can hold.

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

See Also: XSTime

getMinExclusive

public Time getMinExclusive()
Returns the minimum exclusive value that this XSTime can hold.

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

See Also: XSTime XSTime

getMinInclusive

public Time getMinInclusive()
Returns the minimum inclusive value that this XSTime can hold.

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

See Also: XSTime

hasMaximum

public boolean hasMaximum()

hasMinimum

public boolean hasMinimum()

newInstanceCode

public String newInstanceCode()
Returns the Java code necessary to create a new instance of the JType associated with this XSType

setFacets

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

Parameters: simpleType the Simpletype containing the facets

See Also: XSType

setMaxExclusive

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

Parameters: max the maximum exclusive value this XSTime can be

See Also: XSTime

setMaxInclusive

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

Parameters: max the maximum inclusive value this XSTime can be

See Also: XSTime

setMinExclusive

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

Parameters: min the minimum exclusive value this XSTime can be

See Also: XSTime

setMinInclusive

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

Parameters: min the minimum inclusive value this XSTime can be

See Also: XSTime

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