Class KeyRef
java.lang.Object
org.apache.xerces.impl.xs.identity.IdentityConstraint
org.apache.xerces.impl.xs.identity.KeyRef
- All Implemented Interfaces:
org.apache.xerces.xs.XSIDCDefinition, org.apache.xerces.xs.XSObject
Schema key reference identity constraint.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: KeyRef.java 572110 2007-09-02 19:04:44Z mrglavas $
- Author:
- Andy Clark, IBM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UniqueOrKeyThe key (or unique) being referred to.Fields inherited from class IdentityConstraint
fAnnotations, fElementName, fFieldCount, fFields, fIdentityConstraintName, fNamespace, fNumAnnotations, fSelector, typeFields inherited from interface org.apache.xerces.xs.XSIDCDefinition
IC_KEY, IC_KEYREF, IC_UNIQUE -
Constructor Summary
ConstructorsConstructorDescriptionKeyRef(String namespace, String identityConstraintName, String elemName, UniqueOrKey key) Constructs a keyref with the specified name. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Returns the key being referred to.org.apache.xerces.xs.XSIDCDefinition{referenced key} Required if {identity-constraint category} is keyref, forbidden otherwise.Methods inherited from class IdentityConstraint
addAnnotation, addField, equals, getAnnotations, getCategory, getElementName, getFieldAt, getFieldCount, getFieldStrs, getIdentityConstraintName, getName, getNamespace, getNamespaceItem, getSelector, getSelectorStr, getType, setSelector, toString
-
Field Details
-
fKey
The key (or unique) being referred to.
-
-
Constructor Details
-
KeyRef
Constructs a keyref with the specified name.
-
-
Method Details
-
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:
getRefKeyin interfaceorg.apache.xerces.xs.XSIDCDefinition- Overrides:
getRefKeyin classIdentityConstraint
-