public class XSKeyRefImpl extends XSOpenAttrsImpl implements XSKeyRef
| Modifier | Constructor and Description |
|---|---|
protected |
XSKeyRefImpl(XSElement pParent,
XsEKeyref keyRef) |
| Modifier and Type | Method and Description |
|---|---|
XSAnnotation[] |
getAnnotations()
Returns the array of annotations.
|
XSIdentityConstraint |
getIdentityConstraint()
Returns the name of the unique or key identity constraint that this
keyref references.
|
XSElementOrAttrRef[][] |
getMatchCriteria()
Returns an array of references to element and attributes.
|
java.lang.String |
getName()
Returns the name of this constraint.
|
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, isTopLevelObjectpublic XSAnnotation[] getAnnotations()
XSKeyRefgetAnnotations in interface XSKeyRefpublic java.lang.String getName()
XSKeyRefgetName in interface XSKeyRefXSKeyRef.getName()public XSIdentityConstraint getIdentityConstraint()
XSKeyRefgetIdentityConstraint in interface XSKeyRefXSKeyRef.getIdentityConstraint()public XSElementOrAttrRef[][] getMatchCriteria()
XSKeyRefThe 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 XSKeyRefXSKeyRef.getMatchCriteria()public void validate()
throws org.xml.sax.SAXException
XSObjectValidates the objects internal state.
validate in interface XSObjectvalidate in class XSObjectImplorg.xml.sax.SAXException