|
|||||||||
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.IdentityField
public class IdentityField
The field selector for an IdentityConstraint
Constructor Summary | |
---|---|
IdentityField(String xpath)
Creates a new IdentityField. |
Method Summary | |
---|---|
int |
getCardinality(ExpressionVisitor visitor,
ItemType contextItemType)
Get the static cardinality of the expression, that is the number of nodes the field xpath will select for each node selected by the selector xpath. |
NamespaceResolver |
getNamespaceContext()
Get the namespace context for evaluating the XPath expression |
Pattern |
getSelection()
Get the compiled XPath expression |
String |
getXPath()
Returns the XPath of this IdentityField. |
String |
getXPathDefaultNamespace()
Get the XPath default namespace |
void |
setEquivalentExpression(Expression exp)
Sets the compiled XPath expression for this Field. |
void |
setNamespaceContext(NamespaceResolver resolver)
Set the namespace context. |
void |
setSelection(Pattern selection)
Set the compiled XPath expression |
void |
setXPath(String xpath)
Sets the XPath expression for this Field. |
void |
setXPathDefaultNamespace(String uri)
Set the XPath default namespace |
Methods inherited from class com.saxonica.schema.SchemaStructure |
---|
elaborate, fixup, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, lookForCycles, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdentityField(String xpath)
xpath
- the xpath for the IdentityField. Must not be null.Method Detail |
---|
public String getXPath()
public Pattern getSelection()
public void setXPath(String xpath)
xpath
- the XPath expression for this IdentityField. Must not
be null.public void setEquivalentExpression(Expression exp)
exp
- the compiled XPath expression for this IdentityField. Must not
be null.public void setSelection(Pattern selection)
selection
- public void setNamespaceContext(NamespaceResolver resolver)
public NamespaceResolver getNamespaceContext()
public void setXPathDefaultNamespace(String uri)
uri
- the XPath default namespacepublic String getXPathDefaultNamespace()
public int getCardinality(ExpressionVisitor visitor, ItemType contextItemType) throws XPathException
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |