public class XPathSubsetContentSelector extends AbstractContentSelector
| Modifier and Type | Class | 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 | 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 | Description |
|---|---|
XPathSubsetContentSelector(ContentManager cm,
XBLOMContentElement content,
org.w3c.dom.Element bound,
java.lang.String selector) |
Creates a new XPathSubsetContentSelector object.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.w3c.dom.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, isSelectedprotected 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, org.w3c.dom.Element bound, java.lang.String selector)
protected void parseSelector(java.lang.String selector)
public org.w3c.dom.NodeList getSelectedContent()
getSelectedContent in class AbstractContentSelectorCopyright ? 2018 Apache Software Foundation. All Rights Reserved.