org.jbind.xml.core.constraint
Class ConstraintType.Length.LengthConstraint
java.lang.Object
org.jbind.xml.core.constraint.ConstraintType.SimpleConstraint
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myLength
protected int myLength
ConstraintType.Length.LengthConstraint
public ConstraintType.Length.LengthConstraint(int aLength)
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