org.apache.xerces.impl.xs.identity
Class KeyRef
java.lang.Object
org.apache.xerces.impl.xs.identity.IdentityConstraint
org.apache.xerces.impl.xs.identity.KeyRef
- All Implemented Interfaces:
- XSIDCDefinition, XSObject
public class KeyRef
- extends IdentityConstraint
Schema key reference identity constraint.
- Version:
- $Id: KeyRef.java 572110 2007-09-02 19:04:44Z mrglavas $
- Author:
- Andy Clark, IBM
Constructor Summary |
KeyRef(java.lang.String namespace,
java.lang.String identityConstraintName,
java.lang.String elemName,
UniqueOrKey key)
Constructs a keyref with the specified name. |
Methods inherited from class org.apache.xerces.impl.xs.identity.IdentityConstraint |
addAnnotation, addField, equals, getAnnotations, getCategory, getElementName, getFieldAt, getFieldCount, getFieldStrs, getIdentityConstraintName, getName, getNamespace, getNamespaceItem, getSelector, getSelectorStr, getType, setSelector, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KeyRef
public KeyRef(java.lang.String namespace,
java.lang.String identityConstraintName,
java.lang.String elemName,
UniqueOrKey key)
- Constructs a keyref with the specified name.
getKey
public UniqueOrKey getKey()
- Returns the key being referred to.
getRefKey
public XSIDCDefinition getRefKey()
- {referenced key} Required if {identity-constraint category} is keyref,
forbidden otherwise. An identity-constraint definition with
{identity-constraint category} equal to key or unique.
- Specified by:
getRefKey
in interface XSIDCDefinition
- Overrides:
getRefKey
in class IdentityConstraint