org.exolab.castor.xml.schema.facets
Class MaxInclusive

java.lang.Object
  extended by org.exolab.castor.xml.schema.Structure
      extended by org.exolab.castor.xml.schema.Annotated
          extended by org.exolab.castor.xml.schema.Facet
              extended by org.exolab.castor.xml.schema.facets.MaxInclusive
All Implemented Interfaces:
java.io.Serializable

public final class MaxInclusive
extends Facet

An implementation of maxInclusive constraining facet, defined in section "4.3.7 maxInclusive" of "XML Schema Part 2: Datatypes Second Edition" document.

[Definition:] maxInclusive is the inclusive upper bound of the value space for a datatype with the ordered property. The value of maxInclusive must be in the value space of the base type.

Version:
$Revision: 6465 $ $Date: 2006-04-13 06:47:36 -0600 (Thu, 13 Apr 2006) $
Author:
Sergei Ivanov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.exolab.castor.xml.schema.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_REPLACE
 
Fields inherited from class org.exolab.castor.xml.schema.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, WILDCARD
 
Constructor Summary
MaxInclusive(java.lang.String value)
          Creates an instance of this class.
 
Method Summary
 void checkConstraints(java.util.Enumeration localFacets, java.util.Enumeration baseFacets)
          Validation is performed according to section "4.3.7.4 Constraints on maxInclusive Schema Components" of "XML Schema Part 2: Datatypes Second Edition" document.
 boolean overridesBase(Facet baseFacet)
          Checks whether the current facet overrides a facet of the base data type.
 
Methods inherited from class org.exolab.castor.xml.schema.Facet
getName, getOwningType, getStructureType, getValue, isMultivalued, setOwningType, toBigDecimal, toByte, toDouble, toFloat, toInt, toLong, toShort, validate
 
Methods inherited from class org.exolab.castor.xml.schema.Annotated
addAnnotation, getAnnotations, removeAnnotation
 
Methods inherited from class org.exolab.castor.xml.schema.Structure
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxInclusive

public MaxInclusive(java.lang.String value)
Creates an instance of this class.

Parameters:
value - A value for this Facet.
Method Detail

overridesBase

public boolean overridesBase(Facet baseFacet)
Checks whether the current facet overrides a facet of the base data type.

maxInclusive can override the following facets of the base data type:

Overrides:
overridesBase in class Facet
Parameters:
baseFacet - a facet of the base data type
Returns:
true, if the current facet overrides baseFacet; false, otherwise.
See Also:
checkConstraints(Enumeration, Enumeration)

checkConstraints

public void checkConstraints(java.util.Enumeration localFacets,
                             java.util.Enumeration baseFacets)
                      throws SchemaException
Validation is performed according to section "4.3.7.4 Constraints on maxInclusive Schema Components" of "XML Schema Part 2: Datatypes Second Edition" document.

Overrides:
checkConstraints in class Facet
Parameters:
localFacets - local facets of the data type
baseFacets - merged facets of the base data type
Throws:
SchemaException - when the current facet does not satisfy schema component validation constraints


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com