Class XPathSubsetContentSelector
java.lang.Object
org.apache.batik.bridge.svg12.AbstractContentSelector
org.apache.batik.bridge.svg12.XPathSubsetContentSelector
A class to handle the XPath subset syntax for XBL content elements.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA scanner for XPath subset selectors.protected classImplementation of NodeList that contains the nodes that matched this selector.Nested classes/interfaces inherited from class AbstractContentSelector
AbstractContentSelector.ContentSelectorFactory, AbstractContentSelector.XPathPatternContentSelectorFactory, AbstractContentSelector.XPathSubsetContentSelectorFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe index for selection.protected StringThe local name or ID used for selection.protected StringThe QName prefix used for selection.protected XPathSubsetContentSelector.SelectedNodesThe selected nodes.protected static final intprotected static final intprotected static final intprotected static final intprotected intThe type of XPath subset expression.Fields inherited from class AbstractContentSelector
boundElement, contentElement, contentManager, selectorFactories -
Constructor Summary
ConstructorsConstructorDescriptionXPathSubsetContentSelector(ContentManager cm, XBLOMContentElement content, Element bound, String selector) Creates a new XPathSubsetContentSelector object. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of nodes that were matched by the given selector string.protected voidparseSelector(String selector) Parses the selector string.Methods inherited from class AbstractContentSelector
createSelector, isSelected
-
Field Details
-
SELECTOR_INVALID
protected static final int SELECTOR_INVALID- See Also:
-
SELECTOR_ANY
protected static final int SELECTOR_ANY- See Also:
-
SELECTOR_QNAME
protected static final int SELECTOR_QNAME- See Also:
-
SELECTOR_ID
protected static final int SELECTOR_ID- See Also:
-
selectorType
protected int selectorTypeThe type of XPath subset expression. -
prefix
The QName prefix used for selection. -
localName
The local name or ID used for selection. -
index
protected int indexThe index for selection. 0 means select all elements that match. -
selectedContent
The selected nodes.
-
-
Constructor Details
-
XPathSubsetContentSelector
public XPathSubsetContentSelector(ContentManager cm, XBLOMContentElement content, Element bound, String selector) Creates a new XPathSubsetContentSelector object.
-
-
Method Details
-
parseSelector
Parses the selector string. -
getSelectedContent
Returns a list of nodes that were matched by the given selector string.- Specified by:
getSelectedContentin classAbstractContentSelector
-