public class IdentitySelector extends SchemaStructure
Constructor and Description |
---|
IdentitySelector(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
|
String |
getXPath()
Return the source XPath expression of this IdentitySelector.
|
String |
getXPathDefaultNamespace()
Get the XPath default namespace
|
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 Selector.
|
void |
setXPathDefaultNamespace(String uri)
Set the XPath default namespace
|
elaborate, fixup, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, lookForCycles, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus
public IdentitySelector(String xpath) throws SchemaException
xpath
- the xpath for the IdentitySelector. Must not be null.SchemaException
- if xpath is null.public String getXPath()
public Pattern getSelection()
public void setXPath(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 setNamespaceContext(NamespaceResolver resolver)
resolver
- the resolver used to resolve prefixes in the XPath expression to URIspublic NamespaceResolver getNamespaceContext()
public void setXPathDefaultNamespace(String uri)
uri
- the XPath default namespacepublic String getXPathDefaultNamespace()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.