Class KeyRef

  • All Implemented Interfaces:
    org.apache.xerces.xs.XSIDCDefinition, org.apache.xerces.xs.XSObject

    public class KeyRef
    extends IdentityConstraint
    Schema key reference identity constraint.

    INTERNAL:

    Usage of this class is not supported. It may be altered or removed at any time.
    Version:
    $Id: KeyRef.java 572110 2007-09-02 19:04:44Z mrglavas $
    Author:
    Andy Clark, IBM
    • Field Detail

      • fKey

        protected final UniqueOrKey fKey
        The key (or unique) being referred to.
    • Constructor Detail

      • KeyRef

        public KeyRef​(java.lang.String namespace,
                      java.lang.String identityConstraintName,
                      java.lang.String elemName,
                      UniqueOrKey key)
        Constructs a keyref with the specified name.
    • Method Detail

      • getKey

        public UniqueOrKey getKey()
        Returns the key being referred to.
      • getRefKey

        public org.apache.xerces.xs.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 org.apache.xerces.xs.XSIDCDefinition
        Overrides:
        getRefKey in class IdentityConstraint