Class KeyRef
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.identity.IdentityConstraint
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.identity.KeyRef
-
- All Implemented Interfaces:
XSIDCDefinition
,XSObject
public class KeyRef extends IdentityConstraint
Schema key reference identity constraint.- Version:
- $Id$
- Author:
- Andy Clark, IBM
-
-
Field Summary
Fields Modifier and Type Field Description protected UniqueOrKey
fKey
The key (or unique) being referred to.-
Fields inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.identity.IdentityConstraint
fAnnotations, fElementName, fFieldCount, fFields, fIdentityConstraintName, fNamespace, fNumAnnotations, fSelector, type
-
Fields inherited from interface org.smooks.engine.delivery.sax.ng.org.apache.xerces.xs.XSIDCDefinition
IC_KEY, IC_KEYREF, IC_UNIQUE
-
-
Constructor Summary
Constructors Constructor Description KeyRef(String namespace, String identityConstraintName, String elemName, UniqueOrKey key)
Constructs a keyref with the specified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UniqueOrKey
getKey()
Returns the key being referred to.XSIDCDefinition
getRefKey()
{referenced key} Required if {identity-constraint category} is keyref, forbidden otherwise.-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.identity.IdentityConstraint
addAnnotation, addField, equals, getAnnotations, getCategory, getElementName, getFieldAt, getFieldCount, getFieldStrs, getIdentityConstraintName, getName, getNamespace, getNamespaceItem, getSelector, getSelectorStr, getType, setSelector, toString
-
-
-
-
Field Detail
-
fKey
protected final UniqueOrKey fKey
The key (or unique) being referred to.
-
-
Constructor Detail
-
KeyRef
public KeyRef(String namespace, String identityConstraintName, String elemName, UniqueOrKey key)
Constructs a keyref with the specified name.
-
-
Method Detail
-
getKey
public UniqueOrKey getKey()
Returns the key being referred to.
-
getRefKey
public 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 interfaceXSIDCDefinition
- Overrides:
getRefKey
in classIdentityConstraint
-
-