public class IdentitySelector extends SchemaStructure
Constructor and Description |
---|
IdentitySelector(java.lang.String xpath)
Create a new IdentitySelector.
|
Modifier and Type | Method and Description |
---|---|
NamespaceResolver |
getNamespaceContext()
Get the namespace context for evaluating the XPath expression
|
Pattern |
getSelection()
Return the compiled XPath expression as a pattern
|
Expression |
getSelectionExpression()
Return the compiled XPath expression as a 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 |
setSelection(Pattern selection)
Set the compiled XPath expression as a pattern
|
void |
setSelectionExpression(Expression selection)
Set the compiled XPath expression
|
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, lookForCycles, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus
public IdentitySelector(java.lang.String xpath) throws SchemaException
xpath
- the xpath for the IdentitySelector. Must not be null.SchemaException
- if xpath is null.public java.lang.String getXPath()
public Expression getSelectionExpression()
public Pattern getSelection()
public void setXPath(java.lang.String xpath) throws SchemaException
xpath
- the XPath expression for this IdentitySelector. Must not
be null.SchemaException
- if xpath is null.public void setSelection(Pattern selection)
selection
- the XPath expression compiled into a Pattern objectpublic void setSelectionExpression(Expression selection)
selection
- the XPath expression compiled into a Pattern objectpublic 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-2018 Saxonica Limited. All rights reserved.