public interface XSIdentityConstraint extends XSOpenAttrs
XSElement
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.
|
getOpenAttributes
getLocator, getParentObject, getXSSchema, isTopLevelObject, validate
XSAnnotation[] getAnnotations()
java.lang.String getName()
boolean isUnique()
XSElementOrAttrRef[][] getMatchCriteria()
The 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.