APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xs.identity

public Class KeyRef

extends IdentityConstraint
Class Inheritance
Imports
com.sun.org.apache.xerces.internal.xs.XSIDCDefinition

Schema key reference identity constraint.
Author
Andy Clark, IBM

Field Summary

Modifier and TypeField and Description
protected UniqueOrKey
fKey

The key (or unique) being referred to.

Inherited from com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint.getRefKey.

Implements com.sun.org.apache.xerces.internal.xs.XSIDCDefinition.getRefKey.

{referenced key} Required if {identity-constraint category} is keyref, forbidden otherwise.

Inherited from com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint:
addAnnotationaddFieldequalsgetAnnotationsgetCategorygetElementNamegetFieldAtgetFieldCountgetFieldStrsgetIdentityConstraintNamegetNamegetNamespacegetNamespaceItemgetSelectorgetSelectorStrgetTyperesizesetSelectortoString

Field Detail

fKeyback to summary
protected 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 com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint.getRefKey.

Implements com.sun.org.apache.xerces.internal.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.