org.apache.batik.bridge.svg12

Class XPathSubsetContentSelector

public class XPathSubsetContentSelector extends AbstractContentSelector

A class to handle the XPath subset syntax for XBL content elements.
Nested Class Summary
protected static classXPathSubsetContentSelector.Scanner
A scanner for XPath subset selectors.
protected classXPathSubsetContentSelector.SelectedNodes
Implementation of NodeList that contains the nodes that matched this selector.
Field Summary
protected intindex
The index for selection.
protected StringlocalName
The local name or ID used for selection.
protected Stringprefix
The QName prefix used for selection.
protected XPathSubsetContentSelector.SelectedNodesselectedContent
The selected nodes.
protected intselectorType
The type of XPath subset expression.
protected static intSELECTOR_ANY
protected static intSELECTOR_ID
protected static intSELECTOR_INVALID
protected static intSELECTOR_QNAME
Constructor Summary
XPathSubsetContentSelector(ContentManager cm, XBLOMContentElement content, Element bound, String selector)
Creates a new XPathSubsetContentSelector object.
Method Summary
NodeListgetSelectedContent()
Returns a list of nodes that were matched by the given selector string.
protected voidparseSelector(String selector)
Parses the selector string.

Field Detail

index

protected int index
The index for selection. 0 means select all elements that match.

localName

protected String localName
The local name or ID used for selection.

prefix

protected String prefix
The QName prefix used for selection.

selectedContent

protected XPathSubsetContentSelector.SelectedNodes selectedContent
The selected nodes.

selectorType

protected int selectorType
The type of XPath subset expression.

SELECTOR_ANY

protected static final int SELECTOR_ANY

SELECTOR_ID

protected static final int SELECTOR_ID

SELECTOR_INVALID

protected static final int SELECTOR_INVALID

SELECTOR_QNAME

protected static final int SELECTOR_QNAME

Constructor Detail

XPathSubsetContentSelector

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

Method Detail

getSelectedContent

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

parseSelector

protected void parseSelector(String selector)
Parses the selector string.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.