FileDocCategorySizeDatePackage
KeyRef.javaAPI DocJava SE 6 API1935Tue Jun 10 00:22:46 BST 2008com.sun.org.apache.xerces.internal.impl.xs.identity

KeyRef

public class KeyRef extends IdentityConstraint
Schema key reference identity constraint.
xerces.internal
author
Andy Clark, IBM
version
$Id: KeyRef.java,v 1.2.6.1 2005/09/08 07:37:21 sunithareddy Exp $

Fields Summary
protected 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 com.sun.org.apache.xerces.internal.impl.xs.identity.UniqueOrKeygetKey()
Returns the key being referred to.

        return fKey;
    
public com.sun.org.apache.xerces.internal.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;