|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.saxonica.schema.SchemaElement
|
+--com.saxonica.schema.IdentityConstraint
|
+--com.saxonica.schema.KeyRef
A class that represents the XML Schema Identity Constraint: KeyRef.
| Field Summary |
| Fields inherited from class com.saxonica.schema.SchemaElement |
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, COMPOSITOR, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD_ATTRIBUTE, WILDCARD_ELEMENT |
| Constructor Summary | |
KeyRef(java.lang.String name,
int refer)
Creates a new KeyRef Identity-Constraint. |
|
| Method Summary | |
int |
getReferFingerprint()
Returns the refer field (the fingerprint of the name of the key being referenced). |
short |
getStructureType()
Returns the type of this Schema Structure. |
void |
setReferFingerprint(int referFingerprint)
Sets the refer field (the fingerprint of the name of the key being referenced). |
boolean |
validate(Schema schema)
Checks the validity of this Schema defintion. |
| Methods inherited from class com.saxonica.schema.IdentityConstraint |
addField, getFields, getFingerprint, getId, getName, getSchema, getSelector, iterateFields, setFingerprint, setId, setName, setSchema, setSelector |
| Methods inherited from class com.saxonica.schema.SchemaElement |
getColumnNumber, getLineNumber, getPublicId, getSystemId, setLocator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public KeyRef(java.lang.String name,
int refer)
throws SchemaException
name - the name for the IdentityConstraint. Must not be null.
SchemaException - when name or refer are null.| Method Detail |
public int getReferFingerprint()
public void setReferFingerprint(int referFingerprint)
throws SchemaException
referFingerprint - the fingerprint of the name of the key to reference.
SchemaException - when refer is null.public short getStructureType()
getStructureType in class IdentityConstraint
public boolean validate(Schema schema)
throws javax.xml.transform.TransformerException
validate in class IdentityConstraintjavax.xml.transform.TransformerException - when this Schema definition
is invalid.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||