Class AbstractContentSelector

    • Field Detail

      • contentManager

        protected ContentManager contentManager
        The ContentManager object that owns this selector.
      • boundElement

        protected org.w3c.dom.Element boundElement
        The bound element.
      • selectorFactories

        protected static java.util.HashMap selectorFactories
        Map of selector languages to factories.
    • Constructor Detail

      • AbstractContentSelector

        public AbstractContentSelector​(ContentManager cm,
                                       XBLOMContentElement content,
                                       org.w3c.dom.Element bound)
        Creates a new AbstractContentSelector object.
    • Method Detail

      • getSelectedContent

        public abstract org.w3c.dom.NodeList getSelectedContent()
        Returns a list of nodes that were matched by this selector.
      • isSelected

        protected boolean isSelected​(org.w3c.dom.Node n)
        Returns true if the given node has already been selected by a content element.
      • createSelector

        public static AbstractContentSelector createSelector​(java.lang.String selectorLanguage,
                                                             ContentManager cm,
                                                             XBLOMContentElement content,
                                                             org.w3c.dom.Element bound,
                                                             java.lang.String selector)
        Creates a new selector object.
        Parameters:
        content - The content element using this selector.
        bound - The bound element whose children will be selected.
        selector - The selector string.