Package org.apache.batik.bridge.svg12
Class XPathPatternContentSelector
java.lang.Object
org.apache.batik.bridge.svg12.AbstractContentSelector
org.apache.batik.bridge.svg12.XPathPatternContentSelector
A class to handle the XPath Pattern syntax for XBL content elements.
- Version:
- $Id: XPathPatternContentSelector.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Xalan prefix resolver.protected class
Implementation 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
FieldsModifier and TypeFieldDescriptionprotected org.apache.xpath.XPathContext
The XPath context.protected String
The expression string.The Xalan prefix resolver.The selected nodes.protected org.apache.xpath.XPath
The XPath expression.Fields inherited from class org.apache.batik.bridge.svg12.AbstractContentSelector
boundElement, contentElement, contentManager, selectorFactories
-
Constructor Summary
ConstructorsConstructorDescriptionXPathPatternContentSelector
(ContentManager cm, XBLOMContentElement content, Element bound, String selector) Creates a new XPathPatternContentSelector. -
Method Summary
Methods inherited from class org.apache.batik.bridge.svg12.AbstractContentSelector
createSelector, isSelected
-
Field Details
-
prefixResolver
The Xalan prefix resolver. -
xpath
protected org.apache.xpath.XPath xpathThe XPath expression. -
context
protected org.apache.xpath.XPathContext contextThe XPath context. -
selectedContent
The selected nodes. -
expression
The expression string.
-
-
Constructor Details
-
XPathPatternContentSelector
public XPathPatternContentSelector(ContentManager cm, XBLOMContentElement content, Element bound, String selector) Creates a new XPathPatternContentSelector.
-
-
Method Details
-
parse
protected void parse()Parses the XPath selector. -
getSelectedContent
Returns a list of nodes that were matched by the given selector string.- Specified by:
getSelectedContent
in classAbstractContentSelector
-
update
boolean update()Forces this selector to update its selected nodes list. Returns true if the selected node list needed updating. This assumes that the previous content elements in this shadow tree (in document order) have up-to-date selectedContent lists.- Specified by:
update
in classAbstractContentSelector
-