org.enhydra.apache.xerces.validators.schema.identity
Class KeyRef

java.lang.Object
  |
  +--org.enhydra.apache.xerces.validators.schema.identity.IdentityConstraint
        |
        +--org.enhydra.apache.xerces.validators.schema.identity.KeyRef

public class KeyRef
extends IdentityConstraint

Schema key reference identity constraint.

Version:
$Id: KeyRef.java,v 1.1.1.1 2003/03/10 16:34:51 taweili Exp $
Author:
Andy Clark, IBM

Field Summary
protected  IdentityConstraint fKey
          The key (or unique) being referred to.
 
Fields inherited from class org.enhydra.apache.xerces.validators.schema.identity.IdentityConstraint
fElementName, fFieldCount, fFields, fIdentityConstraintName, fSelector, KEY, KEYREF, UNIQUE
 
Constructor Summary
KeyRef(String identityConstraintName, IdentityConstraint key, String elementName)
          Constructs a keyref with the specified name.
 
Method Summary
 IdentityConstraint getKey()
          Returns the key being referred to.
 short getType()
          Returns the identity constraint type.
 
Methods inherited from class org.enhydra.apache.xerces.validators.schema.identity.IdentityConstraint
addField, equals, getElementName, getFieldAt, getFieldCount, getIdentityConstraintName, getSelector, setSelector, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fKey

protected IdentityConstraint fKey
The key (or unique) being referred to.
Constructor Detail

KeyRef

public KeyRef(String identityConstraintName,
              IdentityConstraint key,
              String elementName)
Constructs a keyref with the specified name.
Method Detail

getType

public short getType()
Returns the identity constraint type.
Overrides:
getType in class IdentityConstraint

getKey

public IdentityConstraint getKey()
Returns the key being referred to.


Copyright © 1999 The Apache Software Foundation. All Rights reserved.