Class MaxExclusive
java.lang.Object
org.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.Facet
org.exolab.castor.xml.schema.facets.MaxExclusive
- All Implemented Interfaces:
Serializable
An implementation of maxExclusive constraining facet, defined in section
"4.3.8 maxExclusive"
of "XML Schema Part 2:
Datatypes Second Edition" document.
[Definition:] maxExclusive is the exclusive upper bound of the value space for a datatype with the ordered property. The value of maxExclusive must be in the value space of the base type or be equal to {value} in {base type definition}.
- Version:
- $Revision: 6465 $ $Date: 2006-04-13 06:47:36 -0600 (Thu, 13 Apr 2006) $
- Author:
- Sergei Ivanov
- See Also:
-
Field Summary
Fields inherited from class Facet
ENUMERATION, FRACTIONDIGITS, LENGTH, MAX_EXCLUSIVE, MAX_INCLUSIVE, MAX_LENGTH, MIN_EXCLUSIVE, MIN_INCLUSIVE, MIN_LENGTH, PATTERN, PRECISION, TOTALDIGITS, WHITESPACE, WHITESPACE_COLLAPSE, WHITESPACE_PRESERVE, WHITESPACE_REPLACEModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class Structure
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARDModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final short -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckConstraints(Enumeration localFacets, Enumeration baseFacets) Validation is performed according to section "4.3.8.4 Constraints on maxExclusive Schema Components" of "XML Schema Part 2: Datatypes Second Edition" document.booleanoverridesBase(Facet baseFacet) Checks whether the current facet overrides a facet of the base data type.Methods inherited from class Facet
getName, getOwningType, getStructureType, getValue, isMultivalued, setOwningType, toBigDecimal, toByte, toDouble, toFloat, toInt, toLong, toShort, validateModifier and TypeMethodDescriptiongetName()Returns the name of this Facet.Returns the owningSimpleTypeinstance.shortReturns the type of this Schema Structure.getValue()Returns the character (String) representation of this facet.booleanReturns true if this Facet can occur more than once, such as the "enumeration" facet.voidsetOwningType(SimpleType owningType) Sets the owningSimpleTypeinstance.Returns aBigDecimalrepresentation of the value of this facet.bytetoByte()Returns a byte representation of the value of this facet.doubletoDouble()Returns a double representation of the value of this facet.floattoFloat()Returns a double representation of the value of this facet.inttoInt()Returns an int representation of the value of this facet.longtoLong()Returns a long representation of the value of this facet.shorttoShort()Returns an short representation of the value of this facet.voidvalidate()Checks the validity of this Schema defintion.Methods inherited from class Annotated
addAnnotation, getAnnotations, removeAnnotationModifier and TypeMethodDescriptionvoidaddAnnotation(Annotation annotation) Adds the given Annotation to this Annotated Structure.Returns an Enumeration of the Annotations contained within this Annotated type.voidremoveAnnotation(Annotation annotation) Removes the given Annotation from this Annotated Structure.
-
Constructor Details
-
MaxExclusive
-
-
Method Details
-
overridesBase
Checks whether the current facet overrides a facet of the base data type.maxExclusive can override the following facets of the base data type:
- maxExclusive
- or maxInclusive
- Overrides:
overridesBasein classFacet- Parameters:
baseFacet- a facet of the base data type- Returns:
true, if the current facet overridesbaseFacet;false, otherwise.- See Also:
-
checkConstraints
public void checkConstraints(Enumeration localFacets, Enumeration baseFacets) throws SchemaException Validation is performed according to section "4.3.8.4 Constraints on maxExclusive Schema Components" of "XML Schema Part 2: Datatypes Second Edition" document.- Overrides:
checkConstraintsin classFacet- Parameters:
localFacets- local facets of the data typebaseFacets- merged facets of the base data type- Throws:
SchemaException- when the current facet does not satisfy schema component validation constraints
-