org.jbind.xml.schema.constraint
Class IdRefConstraint

java.lang.Object
  extended byorg.jbind.xml.schema.constraint.Constraint
      extended byorg.jbind.xml.schema.constraint.IdentityConstraint
          extended byorg.jbind.xml.schema.constraint.IdRefOrIdRefsConstraint
              extended byorg.jbind.xml.schema.constraint.IdRefConstraint
All Implemented Interfaces:
IConstraint, IHasBindingAttributes, IHasLocation, IIdentityConstraint, IIdRefOrIdRefsConstraint, IReferenceConstraint, ISourceInfo

public class IdRefConstraint
extends IdRefOrIdRefsConstraint


Constructor Summary
IdRefConstraint(IAttrRefOrDecl aDecl, IHasLocation aHasLocation)
           
 
Method Summary
 ConstraintType getConstraintType()
           
 boolean isSingleNotMultipleReference()
          Indicates if the constraint references a single data object or if it references multiple data objects.
protected  java.util.Iterator iterKeys(IAnyTypeData aData)
          Iterates the keys of the data objects that are referenced by the constraint.
 
Methods inherited from class org.jbind.xml.schema.constraint.IdRefOrIdRefsConstraint
getAnnotation, getBindingAttribute, getConstraintKey, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getPrefixToNamespaceMapping, getStringBindingAttribute, globalCheck, isTopLevelComponent
 
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.IIdRefOrIdRefsConstraint
getAttrRefOrDecl
 
Methods inherited from interface org.jbind.xml.core.constraint.IIdentityConstraint
getDataType, setDataType
 
Methods inherited from interface org.jbind.xml.core.constraint.IConstraint
isFinal, isRestriction, localCheck
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 

Constructor Detail

IdRefConstraint

public IdRefConstraint(IAttrRefOrDecl aDecl,
                       IHasLocation aHasLocation)
Method Detail

isSingleNotMultipleReference

public boolean isSingleNotMultipleReference()
Description copied from interface: IReferenceConstraint
Indicates if the constraint references a single data object or if it references multiple data objects.

Returns:
Returns true iff a single data object is referenced.

getConstraintType

public ConstraintType getConstraintType()

iterKeys

protected java.util.Iterator iterKeys(IAnyTypeData aData)
Description copied from class: IdRefOrIdRefsConstraint
Iterates the keys of the data objects that are referenced by the constraint.

Specified by:
iterKeys in class IdRefOrIdRefsConstraint
Returns:
(required). An iterator of IKey.