Interface XSIdentityConstraint
- All Superinterfaces:
XSComponent
- All Known Implementing Classes:
IdentityConstraintImpl
Identity constraint.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionshortReturns the type of the identity constraint.Returns the list of field XPaths.getName()Name of the identity constraint.Gets theXSElementDeclthat owns this identity constraint.If this isKEYREF, returns the keyXSIdentityConstraintbeing referenced.Returns the selector XPath expression as string.Target namespace of the identity constraint.Methods inherited from interface XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
Field Details
-
KEY
static final short KEY- See Also:
-
KEYREF
static final short KEYREF- See Also:
-
UNIQUE
static final short UNIQUE- See Also:
-
-
Method Details
-
getParent
XSElementDecl getParent()Gets theXSElementDeclthat owns this identity constraint.- Returns:
- never null.
-
getName
String getName()Name of the identity constraint. A name uniquely identifies thisXSIdentityConstraintwithin the namespace.- Returns:
- never null.
-
getTargetNamespace
String getTargetNamespace()Target namespace of the identity constraint. Just short forgetParent().getTargetNamespace(). -
getCategory
-
getSelector
-
getFields
-
getReferencedKey
XSIdentityConstraint getReferencedKey()If this isKEYREF, returns the keyXSIdentityConstraintbeing referenced.- Returns:
- always non-null (when
getCategory()==KEYREF). - Throws:
IllegalStateException- ifgetCategory()!=KEYREF
-