org.exolab.castor.builder.types

Class XSDuration

public final class XSDuration extends XSType

Redistribution and use of this software and associated documentation ("Software"), with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain copyright statements and notices. Redistributions must also contain a copy of this document. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name "Exolab" must not be used to endorse or promote products derived from this Software without prior written permission of Intalio, Inc. For written permission, please contact info@exolab.org. 4. Products derived from this Software may not be called "Exolab" nor may "Exolab" appear in their names without prior written permission of Intalio, Inc. Exolab is a registered trademark of Intalio, Inc. 5. Due credit should be given to the Exolab Project (http://www.exolab.org/). THIS SOFTWARE IS PROVIDED BY INTALIO, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTALIO, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Copyright 2001-2002 (C) Intalio, Inc. All Rights Reserved. $Id: XSDuration.java,v 1.1.1.1 2003/03/03 07:07:56 kvisco Exp $ Date Author Changes 05/22/2001 Arnaud Blandin Created
Constructor Summary
XSDuration()
Method Summary
JTypegetJType()
DurationgetMaxExclusive()
Returns the maximum exclusive value that this XSDuration can hold.
DurationgetMaxInclusive()
Returns the maximum inclusive value that this XSDuration can hold.
DurationgetMinExclusive()
Returns the minimum exclusive value that this XSDuration can hold.
DurationgetMinInclusive()
Returns the minimum inclusive value that this XSDuration can hold.
booleanhasMaximum()
booleanhasMinimum()
voidsetFacets(SimpleType simpleType)
Reads and sets the facets for XSDuration override the readFacet method of XSType
voidsetMaxExclusive(Duration max)
Sets the maximum exclusive value that this XSDuration can hold.
voidsetMaxInclusive(Duration max)
Sets the maximum inclusive value that this XSDuration can hold.
voidsetMinExclusive(Duration min)
Sets the minimum exclusive value that this XSDuration can hold.
voidsetMinInclusive(Duration 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

XSDuration

public XSDuration()

Method Detail

getJType

public JType getJType()

getMaxExclusive

public Duration getMaxExclusive()
Returns the maximum exclusive value that this XSDuration can hold.

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

See Also: XSDuration

getMaxInclusive

public Duration getMaxInclusive()
Returns the maximum inclusive value that this XSDuration can hold.

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

See Also: XSDuration

getMinExclusive

public Duration getMinExclusive()
Returns the minimum exclusive value that this XSDuration can hold.

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

See Also: XSDuration XSDuration

getMinInclusive

public Duration getMinInclusive()
Returns the minimum inclusive value that this XSDuration can hold.

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

See Also: XSDuration

hasMaximum

public boolean hasMaximum()

hasMinimum

public boolean hasMinimum()

setFacets

public void setFacets(SimpleType simpleType)
Reads and sets the facets for XSDuration 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(Duration max)
Sets the maximum exclusive value that this XSDuration can hold.

Parameters: max the maximum exclusive value this XSDuration can be

See Also: XSDuration

setMaxInclusive

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

Parameters: max the maximum inclusive value this XSDuration can be

See Also: XSDuration

setMinExclusive

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

Parameters: max the minimum exclusive value this XSDuration can be

See Also: XSDuration

setMinInclusive

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

Parameters: max the minimum inclusive value this XSInt can be

See Also: XSDuration

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