|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.schema.SchemaStructure com.saxonica.schema.IdentityConstraint
public abstract class 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 |
Method Summary | |
---|---|
void |
addField(IdentityField field)
Adds the given IdentityField to this IdentityConstraint |
void |
elaborate()
Elaborate the schema component: after reloading a serialized schema component model, this expands the component with derived information needed during validation episodes. |
boolean |
fixup(SchemaCompiler compiler)
Check references from this component to other components |
List |
getFields()
Returns the List of Fields contained within this IdentityConstraint. |
int |
getFingerprint()
Get the fingerprint of the name of this identity constraint |
String |
getName()
Return the name of this IdentityConstraint. |
IdentitySelector |
getSelector()
Returns the selector of this IdentityConstraint. |
String |
getTargetNamespace()
Return the target namespace of this IdentityConstraint. |
Iterator |
iterateFields()
Iterate over the fields contained within this IdentityConstraint. |
void |
serialize(SchemaModelSerializer serializer)
Serialize the identity constraint as part of the serialized Schema Component Model |
void |
setNameCode(int nc)
Set the fingerprint of the name of this identity constraint |
void |
setSelector(IdentitySelector selector)
Sets the selector for this IdentityConstraint. |
void |
typeCheck(SchemaCompiler compiler,
SchemaType contextType)
Typecheck the selector and the fields |
boolean |
validate(SchemaCompiler compiler)
Checks the validity of this Schema defintion. |
Methods inherited from class com.saxonica.schema.SchemaStructure |
---|
getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getSystemId, getValidationStatus, lookForCycles, setConfiguration, setFixupStatus, setLineNumber, setLocator, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
---|
equals, 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 |
Method Detail |
---|
public void addField(IdentityField field)
field
- the IdentityField to add.public Iterator iterateFields()
public List getFields()
public String getName()
public String getTargetNamespace()
public IdentitySelector getSelector()
public void setSelector(IdentitySelector selector) throws SchemaException
selector
- the Selector for this IdentityConstraint. Must not be
null.
SchemaException
- if selector is null.public void setNameCode(int nc)
public int getFingerprint()
public boolean fixup(SchemaCompiler compiler) throws SchemaException
fixup
in interface UserSchemaComponent
fixup
in class SchemaStructure
compiler
-
SchemaException
public boolean validate(SchemaCompiler compiler) throws SchemaException
validate
in interface UserSchemaComponent
SchemaException
public void typeCheck(SchemaCompiler compiler, SchemaType contextType)
public void elaborate() throws SchemaException
elaborate
in interface UserSchemaComponent
elaborate
in class SchemaStructure
SchemaException
public void serialize(SchemaModelSerializer serializer) throws XPathException
serialize
in interface SerializableSchemaComponent
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |