Top Description Fields Constructors Methods
org.apache.xerces.impl.xs.identity

public Class KeyRef

extends IdentityConstraint
Class Inheritance
Imports
org.apache.xerces.xs.XSIDCDefinition

Schema key reference identity constraint.
Author
Andy Clark, IBM
Version
$Id: KeyRef.java 572110 2007-09-02 19:04:44Z mrglavas $

Field Summary

Modifier and TypeField and Description
protected final UniqueOrKey
fKey

The key (or unique) being referred to.

Inherited from org.apache.xerces.impl.xs.identity.IdentityConstraint:
fAnnotationsfElementNamefFieldCountfFieldsfIdentityConstraintNamefNamespacefNumAnnotationsfSelectortype

Constructor Summary

AccessConstructor and Description
public
KeyRef(String namespace, String identityConstraintName, String elemName, UniqueOrKey key)

Constructs a keyref with the specified name.

Method Summary

Modifier and TypeMethod and Description
public UniqueOrKey
getKey()

Returns the key being referred to.

public XSIDCDefinition
getRefKey()

Overrides org.apache.xerces.impl.xs.identity.IdentityConstraint.getRefKey.

Implements org.apache.xerces.xs.XSIDCDefinition.getRefKey.

{referenced key} Required if {identity-constraint category} is keyref, forbidden otherwise.
Inherited from org.apache.xerces.impl.xs.identity.IdentityConstraint:
addAnnotationaddFieldequalsgetAnnotationsgetCategorygetElementNamegetFieldAtgetFieldCountgetFieldStrsgetIdentityConstraintNamegetNamegetNamespacegetNamespaceItemgetSelectorgetSelectorStrgetTyperesizesetSelectortoString

Field Detail

fKeyback to summary
protected final UniqueOrKey fKey

The key (or unique) being referred to.

Constructor Detail

KeyRefback to summary
public KeyRef(String namespace, String identityConstraintName, String elemName, UniqueOrKey key)

Constructs a keyref with the specified name.

Method Detail

getKeyback to summary
public UniqueOrKey getKey()

Returns the key being referred to.

getRefKeyback to summary
public XSIDCDefinition getRefKey()

Overrides org.apache.xerces.impl.xs.identity.IdentityConstraint.getRefKey.

Implements 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.