FileDocCategorySizeDatePackage
KeyRef.javaAPI DocJava SE 5 API3970Fri Aug 26 14:55:50 BST 2005com.sun.org.apache.xerces.internal.impl.xs.identity

KeyRef

public class KeyRef extends IdentityConstraint
Schema key reference identity constraint.
author
Andy Clark, IBM
version
$Id: KeyRef.java,v 1.5 2003/11/11 20:14:59 sandygao 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;