public class XPathSubsetContentSelector extends AbstractContentSelector
Modifier and Type | Class and Description |
---|---|
protected static class |
XPathSubsetContentSelector.Scanner
A scanner for XPath subset selectors.
|
protected class |
XPathSubsetContentSelector.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 int |
index
The index for selection.
|
protected java.lang.String |
localName
The local name or ID used for selection.
|
protected java.lang.String |
prefix
The QName prefix used for selection.
|
protected XPathSubsetContentSelector.SelectedNodes |
selectedContent
The selected nodes.
|
protected static int |
SELECTOR_ANY |
protected static int |
SELECTOR_ID |
protected static int |
SELECTOR_INVALID |
protected static int |
SELECTOR_QNAME |
protected int |
selectorType
The type of XPath subset expression.
|
boundElement, contentElement, contentManager, selectorFactories
Constructor and Description |
---|
XPathSubsetContentSelector(ContentManager cm,
XBLOMContentElement content,
Element bound,
java.lang.String selector)
Creates a new XPathSubsetContentSelector object.
|
Modifier and Type | Method and Description |
---|---|
NodeList |
getSelectedContent()
Returns a list of nodes that were matched by the given selector
string.
|
protected void |
parseSelector(java.lang.String selector)
Parses the selector string.
|
createSelector, isSelected
protected static final int SELECTOR_INVALID
protected static final int SELECTOR_ANY
protected static final int SELECTOR_QNAME
protected static final int SELECTOR_ID
protected int selectorType
protected java.lang.String prefix
protected java.lang.String localName
protected int index
protected XPathSubsetContentSelector.SelectedNodes selectedContent
public XPathSubsetContentSelector(ContentManager cm, XBLOMContentElement content, Element bound, java.lang.String selector)
protected void parseSelector(java.lang.String selector)
public NodeList getSelectedContent()
getSelectedContent
in class AbstractContentSelector
Copyright © 2022 Apache Software Foundation. All Rights Reserved.