org.exolab.castor.builder.types

Class XSDate

public final class XSDate extends XSType

The XML Schema Date type

Version: $Revision: 6371 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $

Author: Arnaud Blandin

Constructor Summary
XSDate()
Method Summary
JTypegetJType()
Returns the JType that this XSType represents
DategetMaxExclusive()
Returns the maximum exclusive value that this XSDate can hold.
DategetMaxInclusive()
Returns the maximum inclusive value that this XSDate can hold.
DategetMinExclusive()
Returns the minimum exclusive value that this XSDate can hold.
DategetMinInclusive()
Returns the minimum inclusive value that this XSDate 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 XSDate override the readFacet method of XSType
voidsetMaxExclusive(Date max)
Sets the maximum exclusive value that this XSDate can hold.
voidsetMaxInclusive(Date max)
Sets the maximum inclusive value that this XSDate can hold.
voidsetMinExclusive(Date min)
Sets the minimum exclusive value that this XSDate can hold.
voidsetMinInclusive(Date min)
Sets the minimum inclusive value that this XSInt can hold.
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.

Constructor Detail

XSDate

public XSDate()

Method Detail

getJType

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

Returns: the JType that this XSType represents

getMaxExclusive

public Date getMaxExclusive()
Returns the maximum exclusive value that this XSDate can hold.

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

See Also: XSDate

getMaxInclusive

public Date getMaxInclusive()
Returns the maximum inclusive value that this XSDate can hold.

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

See Also: XSDate

getMinExclusive

public Date getMinExclusive()
Returns the minimum exclusive value that this XSDate can hold.

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

See Also: XSDate XSDate

getMinInclusive

public Date getMinInclusive()
Returns the minimum inclusive value that this XSDate can hold.

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

See Also: XSDate

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 XSDate override the readFacet method of XSType

Parameters: simpleType the Simpletype containing the facets

See Also: XSType

setMaxExclusive

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

Parameters: max the maximum exclusive value this XSDate can be

See Also: XSDate

setMaxInclusive

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

Parameters: max the maximum inclusive value this XSDate can be

See Also: XSDate

setMinExclusive

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

Parameters: min the minimum exclusive value this XSDate can be

See Also: XSDate

setMinInclusive

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

Parameters: min the minimum inclusive value this XSInt can be

See Also: XSDate

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