org.jbind.xml.schema.cmp
Class BuiltInConstraint

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.BuiltInConstraint
All Implemented Interfaces:
IBuiltInConstraint, IConstraint, IHasLocation, ISimpleConstraint
Direct Known Subclasses:
BuiltInConstraint.AnyUri, BuiltInConstraint.DateOrTimeConstraint, BuiltInConstraint.DerivedIntegerConstraint, BuiltInConstraint.Language, BuiltInConstraint.NameConstraint, BuiltInConstraint.NcNameConstraint, BuiltInConstraint.NmTokenConstraint, BuiltInConstraint.QNameConstraint

public abstract class BuiltInConstraint
extends java.lang.Object
implements IBuiltInConstraint


Nested Class Summary
static class BuiltInConstraint.AnyUri
           
protected static class BuiltInConstraint.DateOrTimeConstraint
           
static class BuiltInConstraint.DateTimeConstraint
           
protected static class BuiltInConstraint.DerivedIntegerConstraint
           
static class BuiltInConstraint.EntityConstraint
           
static class BuiltInConstraint.GDateConstraint
           
static class BuiltInConstraint.GreaterThanOrEqualToZero
           
static class BuiltInConstraint.GreaterThanZero
           
static class BuiltInConstraint.IdConstraint
           
static class BuiltInConstraint.IdRefConstraint
           
static class BuiltInConstraint.Language
           
static class BuiltInConstraint.LessThanOrEqualToZero
           
static class BuiltInConstraint.LessThanZero
           
static class BuiltInConstraint.NameConstraint
           
static class BuiltInConstraint.NcNameConstraint
           
static class BuiltInConstraint.NmTokenConstraint
           
static class BuiltInConstraint.NotationConstraint
           
static class BuiltInConstraint.QNameConstraint
           
static class BuiltInConstraint.TimeConstraint
           
static class BuiltInConstraint.UnsignedInteger
           
static class BuiltInConstraint.UnsignedIntShortOrByte
           
 
Method Summary
 ConstraintType getConstraintType()
           
 ILocation getLocation()
           
 void globalCheck(IDataContext aContext, IAnyTypeData aData, IAnyTypeData anEnclosingData, IConstraintViolations aViolations)
          Checks if the specified data satisfies the constraint globally.
 boolean isFinal()
          Indicates if the constraint must not be further restricted.
 boolean isRestriction(IConstraint aConstraint)
          Checks if this constraint is a restriction of the specified constraint.
 void validate(ISimpleType aType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.constraint.IConstraint
localCheck
 

Method Detail

validate

public void validate(ISimpleType aType)

isFinal

public boolean isFinal()
Description copied from interface: IConstraint
Indicates if the constraint must not be further restricted.

Specified by:
isFinal in interface IConstraint
Returns:
Returns true iff the constraint can not be restricted.

isRestriction

public boolean isRestriction(IConstraint aConstraint)
Description copied from interface: IConstraint
Checks if this constraint is a restriction of the specified constraint.

Specified by:
isRestriction in interface IConstraint
Parameters:
aConstraint - (required).
Returns:
Returns true iff this constraint is a restriction of the specified constraint.

getConstraintType

public ConstraintType getConstraintType()
Specified by:
getConstraintType in interface IConstraint

globalCheck

public void globalCheck(IDataContext aContext,
                        IAnyTypeData aData,
                        IAnyTypeData anEnclosingData,
                        IConstraintViolations aViolations)
Description copied from interface: IConstraint
Checks if the specified data satisfies the constraint globally.

Specified by:
globalCheck in interface IConstraint
Parameters:
aContext - (required).
aData - (required).
aViolations - (required).

getLocation

public ILocation getLocation()
Specified by:
getLocation in interface IHasLocation