org.apache.batik.bridge.svg12

Class XPathPatternContentSelector

public class XPathPatternContentSelector extends AbstractContentSelector

A class to handle the XPath Pattern syntax for XBL content elements.
Nested Class Summary
protected classXPathPatternContentSelector.NSPrefixResolver
Xalan prefix resolver.
protected classXPathPatternContentSelector.SelectedNodes
Implementation of NodeList that contains the nodes that matched this selector.
Field Summary
protected XPathContextcontext
The XPath context.
protected Stringexpression
The expression string.
protected XPathPatternContentSelector.NSPrefixResolverprefixResolver
The Xalan prefix resolver.
protected XPathPatternContentSelector.SelectedNodesselectedContent
The selected nodes.
protected XPathxpath
The XPath expression.
Constructor Summary
XPathPatternContentSelector(ContentManager cm, XBLOMContentElement content, Element bound, String selector)
Creates a new XPathPatternContentSelector.
Method Summary
NodeListgetSelectedContent()
Returns a list of nodes that were matched by the given selector string.
protected voidparse()
Parses the XPath selector.

Field Detail

context

protected XPathContext context
The XPath context.

expression

protected String expression
The expression string.

prefixResolver

protected XPathPatternContentSelector.NSPrefixResolver prefixResolver
The Xalan prefix resolver.

selectedContent

protected XPathPatternContentSelector.SelectedNodes selectedContent
The selected nodes.

xpath

protected XPath xpath
The XPath expression.

Constructor Detail

XPathPatternContentSelector

public XPathPatternContentSelector(ContentManager cm, XBLOMContentElement content, Element bound, String selector)
Creates a new XPathPatternContentSelector.

Method Detail

getSelectedContent

public NodeList getSelectedContent()
Returns a list of nodes that were matched by the given selector string.

parse

protected void parse()
Parses the XPath selector.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.