FileDocCategorySizeDatePackage
KeyRef.javaAPI DocApache Xerces 3.0.12142Fri Sep 14 20:33:52 BST 2007org.apache.xerces.impl.xs.identity

KeyRef

public class KeyRef extends IdentityConstraint
Schema key reference identity constraint.
xerces.internal
author
Andy Clark, IBM
version
$Id: KeyRef.java 572110 2007-09-02 19:04:44Z mrglavas $

Fields Summary
protected final UniqueOrKey
fKey
The key (or unique) being referred to.
Constructors Summary
public KeyRef(String namespace, String identityConstraintName, String elemName, UniqueOrKey key)
Constructs a keyref with the specified name.

        super(namespace, identityConstraintName, elemName);
        fKey = key;
        type = IC_KEYREF;
    
Methods Summary
public UniqueOrKeygetKey()
Returns the key being referred to.

        return fKey;
    
public org.apache.xerces.xs.XSIDCDefinitiongetRefKey()
{referenced key} Required if {identity-constraint category} is keyref, forbidden otherwise. An identity-constraint definition with {identity-constraint category} equal to key or unique.

        return fKey;