org.exolab.castor.builder.types

Class XSGYear

public class XSGYear extends XSType

The XML Schema gYear type

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

Author: Arnaud Blandin

Constructor Summary
XSGYear()
Method Summary
JTypegetJType()
GYeargetMaxExclusive()
Returns the maximum exclusive value that this XSGYear can hold.
GYeargetMaxInclusive()
Returns the maximum inclusive value that this XSGYear can hold.
GYeargetMinExclusive()
Returns the minimum exclusive value that this XSGYear can hold.
GYeargetMinInclusive()
Returns the minimum inclusive value that this XSGYear 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 XSXSGYear override the readFacet method of XSType
voidsetMaxExclusive(GYear max)
Sets the maximum exclusive value that this XSGYear can hold.
voidsetMaxInclusive(GYear max)
Sets the maximum inclusive value that this XSGYear can hold.
voidsetMinExclusive(GYear min)
Sets the minimum exclusive value that this XSGYear can hold.
voidsetMinInclusive(GYear min)
Sets the minimum inclusive value that this XSGYear can hold.
voidvalidationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType.

Constructor Detail

XSGYear

public XSGYear()

Method Detail

getJType

public JType getJType()

getMaxExclusive

public GYear getMaxExclusive()
Returns the maximum exclusive value that this XSGYear can hold.

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

See Also: XSGYear

getMaxInclusive

public GYear getMaxInclusive()
Returns the maximum inclusive value that this XSGYear can hold.

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

See Also: XSGYear

getMinExclusive

public GYear getMinExclusive()
Returns the minimum exclusive value that this XSGYear can hold.

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

See Also: XSGYear XSGYear

getMinInclusive

public GYear getMinInclusive()
Returns the minimum inclusive value that this XSGYear can hold.

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

See Also: XSGYear

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

Parameters: simpleType the Simpletype containing the facets

See Also: XSType

setMaxExclusive

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

Parameters: max the maximum exclusive value this XSGYear can be

See Also: XSGYear

setMaxInclusive

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

Parameters: max the maximum inclusive value this XSGYear can be

See Also: XSGYear

setMinExclusive

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

Parameters: min the minimum exclusive value this XSGYear can be

See Also: XSGYear

setMinInclusive

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

Parameters: min the minimum inclusive value this XSGYear can be

See Also: XSGYear

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