public abstract class AbstractContentSelector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
AbstractContentSelector.ContentSelectorFactory
An interface for content selector factories.
|
protected static class |
AbstractContentSelector.XPathPatternContentSelectorFactory
A factory for XPathPatternContentSelector objects.
|
protected static class |
AbstractContentSelector.XPathSubsetContentSelectorFactory
A factory for XPathSubsetContentSelector objects.
|
Modifier and Type | Field and Description |
---|---|
protected Element |
boundElement
The bound element.
|
protected XBLOMContentElement |
contentElement
The XBL content element.
|
protected ContentManager |
contentManager
The ContentManager object that owns this selector.
|
protected static java.util.HashMap |
selectorFactories
Map of selector languages to factories.
|
Constructor and Description |
---|
AbstractContentSelector(ContentManager cm,
XBLOMContentElement content,
Element bound)
Creates a new AbstractContentSelector object.
|
Modifier and Type | Method and Description |
---|---|
static AbstractContentSelector |
createSelector(java.lang.String selectorLanguage,
ContentManager cm,
XBLOMContentElement content,
Element bound,
java.lang.String selector)
Creates a new selector object.
|
abstract NodeList |
getSelectedContent()
Returns a list of nodes that were matched by this selector.
|
protected boolean |
isSelected(Node n)
Returns true if the given node has already been selected
by a content element.
|
protected ContentManager contentManager
protected XBLOMContentElement contentElement
protected Element boundElement
protected static java.util.HashMap selectorFactories
public AbstractContentSelector(ContentManager cm, XBLOMContentElement content, Element bound)
public abstract NodeList getSelectedContent()
protected boolean isSelected(Node n)
public static AbstractContentSelector createSelector(java.lang.String selectorLanguage, ContentManager cm, XBLOMContentElement content, Element bound, java.lang.String selector)
content
- The content element using this selector.bound
- The bound element whose children will be selected.selector
- The selector string.Copyright © 2022 Apache Software Foundation. All Rights Reserved.