Class XPathSubsetContentSelector


  • public class XPathSubsetContentSelector
    extends AbstractContentSelector
    A class to handle the XPath subset syntax for XBL content elements.
    • Field Detail

      • selectorType

        protected int selectorType
        The type of XPath subset expression.
      • prefix

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

        protected java.lang.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.
    • Constructor Detail

      • XPathSubsetContentSelector

        public XPathSubsetContentSelector​(ContentManager cm,
                                          XBLOMContentElement content,
                                          org.w3c.dom.Element bound,
                                          java.lang.String selector)
        Creates a new XPathSubsetContentSelector object.
    • Method Detail

      • parseSelector

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

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