org.jbind.xml.schema.constraint
Class ElementKeyRefConstraint

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Component
      extended byorg.jbind.xml.schema.constraint.IdentityConstraintComponent
          extended byorg.jbind.xml.schema.constraint.ElementIdentityConstraint
              extended byorg.jbind.xml.schema.constraint.ElementKeyRefConstraint
All Implemented Interfaces:
IComponent, IConstraint, IElementIdentityConstraint, IElementKeyRefConstraint, IHasBindingAttributes, IHasLocation, IIdentityConstraint, IIdentityConstraintComponent, ISourceInfo

public class ElementKeyRefConstraint
extends ElementIdentityConstraint
implements IElementKeyRefConstraint


Constructor Summary
ElementKeyRefConstraint(ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName)
           
 
Method Summary
 void checkElementKeys(IKeyStore anElementKeys, IAnyTypeData aData, IConstraintViolations aViolations)
           
 ConstraintType getConstraintType()
           
 void globalCheck(IDataContext aContext, IAnyTypeData aData, IAnyTypeData anEnclosingData, IConstraintViolations aViolations)
          Checks if the specified data satisfies the constraint globally.
 boolean isSingleNotMultipleReference()
           
 void setRefer(IElementInstanceConstraint aConstraint)
           
 
Methods inherited from class org.jbind.xml.schema.constraint.ElementIdentityConstraint
getElementDecl, setElementDecl
 
Methods inherited from class org.jbind.xml.schema.constraint.IdentityConstraintComponent
accept, createKey, getDataType, getNbFields, getSelector, getSymbolspace, isFinal, isReference, isRestriction, localCheck, select, select, setDataType, setFields, setSelector, validate
 
Methods inherited from class org.jbind.xml.schema.cmp.Component
addSubComponent, getAnnotation, getBindingAttribute, getBindings, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getGlobalRef, getLocalBindingAttribute, getLocalStringBindingAttribute, getLocation, getName, getNamespace, getParentComponent, getPrefixToNamespaceMapping, getStringBindingAttribute, isAnonymous, isTopLevelComponent, setBindings, setParentComponent, visitSubComponents
 
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.IIdentityConstraintComponent
getNbFields, getSelector, setFields, setSelector
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponent
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent, validate
 
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo
getAnnotation, getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getStringBindingAttribute
 
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
 

Constructor Detail

ElementKeyRefConstraint

public ElementKeyRefConstraint(ISourceInfo aSourceInfo,
                               java.lang.String aNamespace,
                               java.lang.String aName)
Method Detail

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

checkElementKeys

public void checkElementKeys(IKeyStore anElementKeys,
                             IAnyTypeData aData,
                             IConstraintViolations aViolations)
Specified by:
checkElementKeys in interface IElementIdentityConstraint

getConstraintType

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

setRefer

public void setRefer(IElementInstanceConstraint aConstraint)

isSingleNotMultipleReference

public boolean isSingleNotMultipleReference()