org.jbind.xml.core.constraint
Class ConstraintType.Length.LengthConstraint

java.lang.Object
  extended byorg.jbind.xml.core.constraint.ConstraintType.SimpleConstraint
      extended byorg.jbind.xml.core.constraint.ConstraintType.Length.LengthConstraint
All Implemented Interfaces:
IConstraint, IHasLocation, ISimpleConstraint
Enclosing class:
ConstraintType.Length

public abstract class ConstraintType.Length.LengthConstraint
extends org.jbind.xml.core.constraint.ConstraintType.SimpleConstraint


Field Summary
protected  int myLength
           
 
Constructor Summary
ConstraintType.Length.LengthConstraint(int aLength)
           
 
Method Summary
 ConstraintType getConstraintType()
           
 int getLength()
           
 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.
 void setIsFinal(boolean aBoolean)
           
 
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
isRestriction, localCheck
 

Field Detail

myLength

protected int myLength
Constructor Detail

ConstraintType.Length.LengthConstraint

public ConstraintType.Length.LengthConstraint(int aLength)
Method Detail

getConstraintType

public ConstraintType getConstraintType()

getLength

public int getLength()

globalCheck

public final 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).

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.

setIsFinal

public void setIsFinal(boolean aBoolean)

getLocation

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