|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.saxonica.schema.SchemaStructure
com.saxonica.schema.IdentityConstraint
com.saxonica.schema.KeyRef
This class represents an xs:keyRef identity constraint in a schema
Field Summary |
Fields inherited from interface net.sf.saxon.type.SchemaComponent |
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
Constructor Summary | |
KeyRef(java.lang.String name,
int refer)
Create a new KeyRef Identity-Constraint. |
Method Summary | |
boolean |
fixup(PreparedSchema schema)
Check references from this component to other components |
int |
getReferFingerprint()
Gets the fingerprint of the name of the key being referenced). |
int |
getSymbolSpace()
Get the symbol space of the target of this reference |
SchemaComponent |
getTarget()
Get the schema component identified by this reference. |
boolean |
isResolved()
Determine whether this reference has been resolved |
void |
setReferFingerprint(int referFingerprint)
Sets the fingerprint of the name of the key being referenced. |
void |
tryToResolve(PreparedSchema schema)
Try to resolve the reference if possible, relative to components present in a given schema. |
boolean |
validate(PreparedSchema schema)
Checks the validity of this Schema defintion. |
Methods inherited from class com.saxonica.schema.IdentityConstraint |
addField, getFields, getFingerprint, getName, getSelector, iterateFields, setFingerprint, setName, setSelector |
Methods inherited from class com.saxonica.schema.SchemaStructure |
getColumnNumber, getFixupStatus, getLineNumber, getPublicId, getSchema, getSystemId, getValidationStatus, lookForCycles, setFixupStatus, setLineNumber, setLocator, setSchema, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.saxonica.schema.ComponentReference |
getFingerprint, getSchema |
Methods inherited from interface javax.xml.transform.SourceLocator |
getColumnNumber, getLineNumber, getPublicId, getSystemId |
Methods inherited from interface com.saxonica.schema.UserSchemaComponent |
lookForCycles |
Methods inherited from interface net.sf.saxon.type.SchemaComponent |
getValidationStatus |
Constructor Detail |
public KeyRef(java.lang.String name, int refer) throws SchemaException
name
- the name for the IdentityConstraint. Must not be null.Method Detail |
public int getReferFingerprint()
public void setReferFingerprint(int referFingerprint)
referFingerprint
- the fingerprint of the name of the key to reference.public void tryToResolve(PreparedSchema schema)
tryToResolve
in interface ComponentReference
schema
- The schema containing the candidate target components for the reference. If
null, the schema containing the reference is used.public boolean isResolved()
isResolved
in interface ComponentReference
public SchemaComponent getTarget() throws UnresolvedReferenceException
getTarget
in interface ComponentReference
UnresolvedReferenceException
- if the reference has not been resolved. Note that
this is an unchecked exception.public int getSymbolSpace()
getSymbolSpace
in interface ComponentReference
public boolean fixup(PreparedSchema schema) throws SchemaException
fixup
in interface UserSchemaComponent
fixup
in class IdentityConstraint
schema
- The schema is used for reporting errors
SchemaException
public boolean validate(PreparedSchema schema) throws SchemaException
validate
in interface UserSchemaComponent
validate
in class IdentityConstraint
SchemaException
- when this Schema definition is invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |