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.
  • 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 selectorType
      The type of XPath subset expression.
    • prefix

      protected String prefix
      The QName prefix used for selection.
    • localName

      protected 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 Details

  • Method Details

    • parseSelector

      protected void parseSelector(String selector)
      Parses the selector string.
    • getSelectedContent

      public NodeList getSelectedContent()
      Returns a list of nodes that were matched by the given selector string.
      Specified by:
      getSelectedContent in class AbstractContentSelector