public abstract class FieldOrSelector extends SchemaStructure
Modifier and Type | Field and Description |
---|---|
protected Expression |
selectExpression
Compiled XPath expression
|
Constructor and Description |
---|
FieldOrSelector() |
Modifier and Type | Method and Description |
---|---|
NamespaceResolver |
getNamespaceContext()
Get the namespace context for evaluating the XPath expression
|
Expression |
getSelectExpression()
Get the compiled XPath expression
|
Pattern |
getSelection()
Return the compiled XPath expression as a match pattern
|
java.lang.String |
getXPath()
Return the source XPath expression of this IdentitySelector.
|
java.lang.String |
getXPathDefaultNamespace()
Get the XPath default namespace
|
void |
setNamespaceContext(NamespaceResolver resolver)
Set the namespace context.
|
void |
setSelectExpression(Expression selectExpression)
Set the compiled XPath expression
|
void |
setSelection(Pattern selection)
Set the compiled XPath expression as a match pattern
|
void |
setXPath(java.lang.String xpath)
Sets the XPath expression for this Selector.
|
void |
setXPathDefaultNamespace(java.lang.String uri)
Set the XPath default namespace
|
elaborate, fixup, getColumnNumber, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, isValidationNeeded, lookForCycles, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus
protected Expression selectExpression
public java.lang.String getXPath()
public Pattern getSelection()
public Expression getSelectExpression()
public void setXPath(java.lang.String xpath)
xpath
- the XPath expression for this IdentitySelector. Must not
be null.public void setSelection(Pattern selection)
selection
- the XPath expression compiled into a Pattern objectpublic void setSelectExpression(Expression selectExpression)
selectExpression
- the XPath expressionpublic void setNamespaceContext(NamespaceResolver resolver)
resolver
- the resolver used to resolve prefixes in the XPath expression to URIspublic NamespaceResolver getNamespaceContext()
public void setXPathDefaultNamespace(java.lang.String uri)
uri
- the XPath default namespacepublic java.lang.String getXPathDefaultNamespace()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.