org.jbind.xml.schema.constraint
Class IdOrIdsConstraint

java.lang.Object
  extended byorg.jbind.xml.schema.constraint.Constraint
      extended byorg.jbind.xml.schema.constraint.IdentityConstraint
          extended byorg.jbind.xml.schema.constraint.IdOrIdsConstraint
All Implemented Interfaces:
IConstraint, IHasLocation, IIdentityConstraint
Direct Known Subclasses:
IdConstraint, IdsConstraint

public abstract class IdOrIdsConstraint
extends IdentityConstraint


Constructor Summary
IdOrIdsConstraint(IAttrRefOrDecl aDecl, IHasLocation aHasLocation)
           
 
Method Summary
 void globalCheck(IDataContext aContext, IAnyTypeData aData, IAnyTypeData anEnclosingData, IConstraintViolations aViolations)
          Checks if the specified data satisfies the constraint globally.
protected abstract  java.util.Iterator iterKeys(IAnyTypeData aData)
           
 
Methods inherited from class org.jbind.xml.schema.constraint.IdentityConstraint
getAddressedData, getAttributeRef, getAttrRefOrDecl, getDataType, isRestriction, localCheck, setDataType
 
Methods inherited from class org.jbind.xml.schema.constraint.Constraint
getLocation, isFinal, setIsFinal
 
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
getConstraintType, isFinal
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 

Constructor Detail

IdOrIdsConstraint

public IdOrIdsConstraint(IAttrRefOrDecl aDecl,
                         IHasLocation aHasLocation)
Method Detail

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.

Parameters:
aContext - (required).
aData - (required).
aViolations - (required).

iterKeys

protected abstract java.util.Iterator iterKeys(IAnyTypeData aData)