public class IdentityField extends SchemaStructure
Constructor and Description |
---|
IdentityField(java.lang.String xpath)
Creates a new IdentityField.
|
Modifier and Type | Method and Description |
---|---|
BuiltInAtomicType |
getBuiltInBaseType() |
int |
getCardinality(ExpressionVisitor visitor,
ContextItemStaticInfo 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
|
Expression |
getSelectionExpression()
Return the compiled XPath expression as a pattern
|
java.lang.String |
getXPath()
Returns the XPath of this IdentityField.
|
java.lang.String |
getXPathDefaultNamespace()
Get the XPath default namespace
|
void |
setBuiltInBaseType(BuiltInAtomicType type) |
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 |
setSelectionExpression(Expression exp) |
void |
setXPath(java.lang.String xpath)
Sets the XPath expression for this Field.
|
void |
setXPathDefaultNamespace(java.lang.String uri)
Set the XPath default namespace
|
elaborate, fixup, getColumnNumber, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, lookForCycles, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus
public IdentityField(java.lang.String xpath)
xpath
- the xpath for the IdentityField. Must not be null.public java.lang.String getXPath()
public Pattern getSelection()
public Expression getSelectionExpression()
public void setSelectionExpression(Expression exp)
public void setXPath(java.lang.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
- the compiled selection expression, expressed as a Pattern (because it uses a sufficiently
small subset of XPath)public void setNamespaceContext(NamespaceResolver resolver)
resolver
- the namespace resolved to be used for resolving prefixes within the XPath expression to URIspublic NamespaceResolver getNamespaceContext()
public void setXPathDefaultNamespace(java.lang.String uri)
uri
- the XPath default namespacepublic java.lang.String getXPathDefaultNamespace()
public int getCardinality(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType) throws XPathException
visitor
- the expression visitorcontextItemType
- the type of the context item, and information about whether a context item will
always be provided or notXPathException
- if an error is found during the evaluationpublic void setBuiltInBaseType(BuiltInAtomicType type)
public BuiltInAtomicType getBuiltInBaseType()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.