org.apache.xerces.impl.xs.identity

Class KeyRef

Implemented Interfaces:
org.apache.xerces.xs.XSIDCDefinition

public class KeyRef
extends IdentityConstraint

Schema key reference identity constraint.
Version:
$Id: KeyRef.java 320098 2004-10-06 15:14:55Z mrglavas $
Author:
Andy Clark, IBM

Field Summary

protected UniqueOrKey
fKey
The key (or unique) being referred to.

Fields inherited from class org.apache.xerces.impl.xs.identity.IdentityConstraint

fAnnotations, fElementName, fFieldCount, fFields, fIdentityConstraintName, fNamespace, fNumAnnotations, fSelector, type

Fields inherited from interface org.apache.xerces.xs.XSIDCDefinition

IC_KEY, IC_KEYREF, IC_UNIQUE

Constructor Summary

KeyRef(String namespace, String identityConstraintName, String elemName, UniqueOrKey key)
Constructs a keyref with the specified name.

Method Summary

UniqueOrKey
getKey()
Returns the key being referred to.
org.apache.xerces.xs.XSIDCDefinition
getRefKey()
{referenced key} Required if {identity-constraint category} is keyref, forbidden otherwise.

Methods inherited from class org.apache.xerces.impl.xs.identity.IdentityConstraint

addAnnotation, addField, equals, getAnnotations, getCategory, getElementName, getFieldAt, getFieldCount, getFieldStrs, getIdentityConstraintName, getName, getNamespace, getNamespaceItem, getRefKey, getSelector, getSelectorStr, getType, setSelector, toString

Field Details

fKey

protected UniqueOrKey fKey
The key (or unique) being referred to.

Constructor Details

KeyRef

public KeyRef(String namespace,
              String identityConstraintName,
              String elemName,
              UniqueOrKey key)
Constructs a keyref with the specified name.

Method Details

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 interface IdentityConstraint

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.