org.exolab.castor.builder.types
Class AbstractRangeFacet
public abstract class AbstractRangeFacet
A base class for types which support the range, whiteSpace and pattern facets.
$Revision: 6623 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
ANYURI_TYPE , BASE64BINARY_TYPE , BOOLEAN_TYPE , BYTE_TYPE , CLASS , COLLECTION , DATETIME_TYPE , DATE_TYPE , DECIMAL_TYPE , DOUBLE_TYPE , DURATION_TYPE , ENTITIES , ENTITY , FLOAT_TYPE , GDAY_TYPE , GMONTHDAY_TYPE , GMONTH_TYPE , GYEARMONTH_TYPE , GYEAR_TYPE , HEXBINARY_TYPE , IDREFS_TYPE , IDREF_TYPE , ID_TYPE , INTEGER_TYPE , INT_TYPE , LANGUAGE_TYPE , LONG_TYPE , NAME_TYPE , NCNAME_TYPE , NEGATIVE_INTEGER_TYPE , NMTOKENS_TYPE , NMTOKEN_TYPE , NON_NEGATIVE_INTEGER_TYPE , NON_POSITIVE_INTEGER_TYPE , NORMALIZEDSTRING_TYPE , NOTATION_TYPE , NULL , POSITIVE_INTEGER_TYPE , QNAME_TYPE , SHORT_TYPE , STRING_TYPE , TIME_TYPE , TOKEN_TYPE , UNSIGNED_BYTE_TYPE , UNSIGNED_INT_TYPE , UNSIGNED_LONG_TYPE , UNSIGNED_SHORT_TYPE |
protected void | codeRangeFacet(JSourceCode jsc, String validatorName) - Generate the source code for pattern facet validation.
|
String | getMaxExclusive() - Returns the maximum exclusive value that this XSDate can hold.
|
String | getMaxInclusive() - Returns the maximum inclusive value that this XSDate can hold.
|
String | getMinExclusive() - Returns the minimum exclusive value that this XSDate can hold.
|
String | getMinInclusive() - Returns the minimum inclusive value that this XSDate can hold.
|
boolean | hasMaximum() - Returns true if a maximum (inclusive or exclusive) has been set.
|
boolean | hasMinimum() - Returns true if a minimum (inclusive or exclusive) has been set.
|
protected void | setFacet(Facet facet) -
|
void | setMaxExclusive(String max) - Sets the maximum exclusive value that this XSDate can hold.
|
void | setMaxInclusive(String max) - Sets the maximum inclusive value that this XSDate can hold.
|
void | setMinExclusive(String min) - Sets the minimum exclusive value that this XSDate can hold.
|
void | setMinInclusive(String min) - Sets the minimum inclusive value that this XSDate can hold.
|
protected void | setRangeFacet(Facet facet) - Transfer given facet if it is a range.
|
createDefaultValueWithString , createFromJavaObjectCode , createToJavaObjectCode , getJType , getName , getType , isCollection , isDateTime , isEnumerated , isPrimitive , newInstanceCode , setAsEnumerated , setFacet , setFacets , validationCode |
codeRangeFacet
protected final void codeRangeFacet(JSourceCode jsc,
String validatorName)
Generate the source code for pattern facet validation.
jsc
- The JSourceCode to fill in.validatorName
- The name of the TypeValidator that the range should be added to.
getMaxExclusive
public final String getMaxExclusive()
Returns the maximum exclusive value that this XSDate can hold.
- The maximum exclusive value that this XSDate can hold. If
no maximum exclusive value has been set, Null will be returned.
getMaxInclusive
public final String getMaxInclusive()
Returns the maximum inclusive value that this XSDate can hold.
- The maximum inclusive value that this XSDate can hold. If
no maximum inclusive value has been set, Null will be returned.
getMinExclusive
public final String getMinExclusive()
Returns the minimum exclusive value that this XSDate can hold.
- The minimum exclusive value that this XSDate can hold. If
no minimum exclusive value has been set, Null will be returned.
getMinInclusive
public final String getMinInclusive()
Returns the minimum inclusive value that this XSDate can hold.
- The minimum inclusive value that this XSDate can be.
hasMaximum
public final boolean hasMaximum()
Returns true if a maximum (inclusive or exclusive) has been set.
- True if a maximum (inclusive or exclusive) has been set.
hasMinimum
public final boolean hasMinimum()
Returns true if a minimum (inclusive or exclusive) has been set.
- True if a minimum (inclusive or exclusive) has been set.
setMaxExclusive
public final void setMaxExclusive(String max)
Sets the maximum exclusive value that this XSDate can hold.
max
- The maximum exclusive value this XSDate can be.
setMaxInclusive
public final void setMaxInclusive(String max)
Sets the maximum inclusive value that this XSDate can hold.
max
- The maximum inclusive value this XSDate can be.
setMinExclusive
public final void setMinExclusive(String min)
Sets the minimum exclusive value that this XSDate can hold.
min
- The minimum exclusive value this XSDate can be.
setMinInclusive
public final void setMinInclusive(String min)
Sets the minimum inclusive value that this XSDate can hold.
min
- The minimum inclusive value this XSDate can be.
setRangeFacet
protected final void setRangeFacet(Facet facet)
Transfer given facet if it is a range.
facet
- The facet to transfer.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com