public class XPathPatternContentSelector extends AbstractContentSelector
Modifier and Type | Class and Description |
---|---|
protected class |
XPathPatternContentSelector.NSPrefixResolver
Xalan prefix resolver.
|
protected class |
XPathPatternContentSelector.SelectedNodes
Implementation of NodeList that contains the nodes that matched
this selector.
|
AbstractContentSelector.ContentSelectorFactory, AbstractContentSelector.XPathPatternContentSelectorFactory, AbstractContentSelector.XPathSubsetContentSelectorFactory
Modifier and Type | Field and Description |
---|---|
protected org.apache.xpath.XPathContext |
context
The XPath context.
|
protected String |
expression
The expression string.
|
protected XPathPatternContentSelector.NSPrefixResolver |
prefixResolver
The Xalan prefix resolver.
|
protected XPathPatternContentSelector.SelectedNodes |
selectedContent
The selected nodes.
|
protected org.apache.xpath.XPath |
xpath
The XPath expression.
|
boundElement, contentElement, contentManager, selectorFactories
Constructor and Description |
---|
XPathPatternContentSelector(ContentManager cm,
XBLOMContentElement content,
Element bound,
String selector)
Creates a new XPathPatternContentSelector.
|
Modifier and Type | Method and Description |
---|---|
NodeList |
getSelectedContent()
Returns a list of nodes that were matched by the given selector
string.
|
protected void |
parse()
Parses the XPath selector.
|
createSelector, isSelected
protected XPathPatternContentSelector.NSPrefixResolver prefixResolver
protected org.apache.xpath.XPath xpath
protected org.apache.xpath.XPathContext context
protected XPathPatternContentSelector.SelectedNodes selectedContent
protected String expression
public XPathPatternContentSelector(ContentManager cm, XBLOMContentElement content, Element bound, String selector)
protected void parse()
public NodeList getSelectedContent()
getSelectedContent
in class AbstractContentSelector
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.