org.jbind.xml.schema.constraint
Class ElementKeyRefConstraint
java.lang.Object
org.jbind.xml.schema.cmp.Component
org.jbind.xml.schema.constraint.IdentityConstraintComponent
org.jbind.xml.schema.constraint.ElementIdentityConstraint
org.jbind.xml.schema.constraint.ElementKeyRefConstraint
- All Implemented Interfaces:
- IComponent, IConstraint, IElementIdentityConstraint, IElementKeyRefConstraint, IHasBindingAttributes, IHasLocation, IIdentityConstraint, IIdentityConstraintComponent, ISourceInfo
- public class ElementKeyRefConstraint
- extends ElementIdentityConstraint
- implements IElementKeyRefConstraint
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.cmp.IComponent |
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent, validate |
ElementKeyRefConstraint
public ElementKeyRefConstraint(ISourceInfo aSourceInfo,
java.lang.String aNamespace,
java.lang.String aName)
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()