Package org.apache.batik.bridge.svg12
Class XPathSubsetContentSelector
- java.lang.Object
-
- org.apache.batik.bridge.svg12.AbstractContentSelector
-
- org.apache.batik.bridge.svg12.XPathSubsetContentSelector
-
public class XPathSubsetContentSelector extends AbstractContentSelector
A class to handle the XPath subset syntax for XBL content elements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classXPathSubsetContentSelector.ScannerA scanner for XPath subset selectors.protected classXPathSubsetContentSelector.SelectedNodesImplementation of NodeList that contains the nodes that matched this selector.-
Nested classes/interfaces inherited from class org.apache.batik.bridge.svg12.AbstractContentSelector
AbstractContentSelector.ContentSelectorFactory, AbstractContentSelector.XPathPatternContentSelectorFactory, AbstractContentSelector.XPathSubsetContentSelectorFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected intindexThe index for selection.protected java.lang.StringlocalNameThe local name or ID used for selection.protected java.lang.StringprefixThe QName prefix used for selection.protected XPathSubsetContentSelector.SelectedNodesselectedContentThe selected nodes.protected static intSELECTOR_ANYprotected static intSELECTOR_IDprotected static intSELECTOR_INVALIDprotected static intSELECTOR_QNAMEprotected intselectorTypeThe type of XPath subset expression.-
Fields inherited from class org.apache.batik.bridge.svg12.AbstractContentSelector
boundElement, contentElement, contentManager, selectorFactories
-
-
Constructor Summary
Constructors Constructor Description XPathSubsetContentSelector(ContentManager cm, XBLOMContentElement content, org.w3c.dom.Element bound, java.lang.String selector)Creates a new XPathSubsetContentSelector object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodeListgetSelectedContent()Returns a list of nodes that were matched by the given selector string.protected voidparseSelector(java.lang.String selector)Parses the selector string.-
Methods inherited from class org.apache.batik.bridge.svg12.AbstractContentSelector
createSelector, isSelected
-
-
-
-
Field Detail
-
SELECTOR_INVALID
protected static final int SELECTOR_INVALID
- See Also:
- Constant Field Values
-
SELECTOR_ANY
protected static final int SELECTOR_ANY
- See Also:
- Constant Field Values
-
SELECTOR_QNAME
protected static final int SELECTOR_QNAME
- See Also:
- Constant Field Values
-
SELECTOR_ID
protected static final int SELECTOR_ID
- See Also:
- Constant Field Values
-
selectorType
protected int selectorType
The type of XPath subset expression.
-
prefix
protected java.lang.String prefix
The QName prefix used for selection.
-
localName
protected java.lang.String localName
The local name or ID used for selection.
-
index
protected int index
The index for selection. 0 means select all elements that match.
-
selectedContent
protected XPathSubsetContentSelector.SelectedNodes selectedContent
The selected nodes.
-
-
Constructor Detail
-
XPathSubsetContentSelector
public XPathSubsetContentSelector(ContentManager cm, XBLOMContentElement content, org.w3c.dom.Element bound, java.lang.String selector)
Creates a new XPathSubsetContentSelector object.
-
-
Method Detail
-
parseSelector
protected void parseSelector(java.lang.String selector)
Parses the selector string.
-
getSelectedContent
public org.w3c.dom.NodeList getSelectedContent()
Returns a list of nodes that were matched by the given selector string.- Specified by:
getSelectedContentin classAbstractContentSelector
-
-