public class XSIdentityConstraintImpl extends XSOpenAttrsImpl implements XSIdentityConstraint
| Modifier | Constructor and Description |
|---|---|
protected |
XSIdentityConstraintImpl(XSElement pParent,
XsEKey key) |
protected |
XSIdentityConstraintImpl(XSElement pParent,
XsEUnique unique) |
| Modifier and Type | Method and Description |
|---|---|
XSAnnotation[] |
getAnnotations()
Returns the array of annotations.
|
XSElementOrAttrRef[][] |
getMatchCriteria()
Returns an array of references to element and attributes.
|
java.lang.String |
getName()
Returns the name of this constraint.
|
boolean |
isUnique()
Return true if every element of the key is required when matching a
node.
|
void |
validate()
Validates the objects internal state.
|
getOpenAttributesgetLocator, getParentObject, getXsObject, getXSSchema, isTopLevelObject, validateAllInclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOpenAttributesgetLocator, getParentObject, getXSSchema, isTopLevelObjectprotected XSIdentityConstraintImpl(XSElement pParent, XsEKey key) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic XSAnnotation[] getAnnotations()
XSIdentityConstraintgetAnnotations in interface XSIdentityConstraintpublic java.lang.String getName()
XSIdentityConstraintgetName in interface XSIdentityConstraintgetName()public boolean isUnique()
XSIdentityConstraintisUnique in interface XSIdentityConstraintisUniquepublic XSElementOrAttrRef[][] getMatchCriteria()
XSIdentityConstraintThe result is a two dimensional array, the first dimension corresponds to each xs:field used to declare the constraint. The second dimension is for each 'or' used within the fields xpath query.
Only tags and attributes that were matched by the xpath will be in the result, any xpath that fails to match anything will not be stored in this array.
getMatchCriteria in interface XSIdentityConstraintgetMatchCriteria()public void validate()
throws org.xml.sax.SAXException
XSObjectValidates the objects internal state.
validate in interface XSObjectvalidate in class XSObjectImplorg.xml.sax.SAXException