|
||||||||||
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
The base class for the XML Schema Identity Constraints (key, keyref, unique).
Field Summary |
Fields inherited from interface net.sf.saxon.type.SchemaComponent |
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
Constructor Summary | |
protected |
IdentityConstraint(java.lang.String name)
Constructor used by sub-classes. |
Method Summary | |
void |
addField(IdentityField field)
Adds the given IdentityField to this IdentityConstraint |
boolean |
fixup(PreparedSchema schema)
Check references from this component to other components |
java.util.List |
getFields()
Returns the List of Fields contained within this IdentityConstraint. |
int |
getFingerprint()
Get the fingerprint of the name of this identity constraint |
java.lang.String |
getName()
Returns the name of this IdentityConstraint. |
IdentitySelector |
getSelector()
Returns the selector of this IdentityConstraint. |
java.util.Iterator |
iterateFields()
Iterate over the fields contained within this IdentityConstraint. |
void |
setFingerprint(int fp)
Set the fingerprint of the name of this identity constraint |
void |
setName(java.lang.String name)
Sets the name for this IdentityConstraint. |
void |
setSelector(IdentitySelector selector)
Sets the selector for this IdentityConstraint. |
boolean |
validate(PreparedSchema schema)
Checks the validity of this Schema defintion. |
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.UserSchemaComponent |
lookForCycles |
Methods inherited from interface net.sf.saxon.type.SchemaComponent |
getValidationStatus |
Constructor Detail |
protected IdentityConstraint(java.lang.String name) throws SchemaException
name
- the name for the IdentityConstraint. Must not be null.Method Detail |
public void addField(IdentityField field)
field
- the IdentityField to add.public java.util.Iterator iterateFields()
public java.util.List getFields()
public java.lang.String getName()
public IdentitySelector getSelector()
public void setName(java.lang.String name) throws SchemaException
name
- the name for this IdentityConstraint. Must not be null.
SchemaException
- if name is null.public void setSelector(IdentitySelector selector) throws SchemaException
selector
- the Selector for this IdentityConstraint. Must not be
null.
SchemaException
- if selector is null.public void setFingerprint(int fp)
public int getFingerprint()
public boolean fixup(PreparedSchema schema) throws SchemaException
fixup
in interface UserSchemaComponent
schema
- The schema is used for reporting errors
SchemaException
public boolean validate(PreparedSchema schema) throws SchemaException
validate
in interface UserSchemaComponent
schema
- if this is not null, any errors that are detected should
be reported using the error() method of this schema.
SchemaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |