|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.bridge.svg12.AbstractContentSelector
public abstract class AbstractContentSelector
A base class for handlers of different XBL content element includes attribute syntaxes.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
protected org.w3c.dom.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 Summary | |
---|---|
AbstractContentSelector(ContentManager cm,
XBLOMContentElement content,
org.w3c.dom.Element bound)
Creates a new AbstractContentSelector object. |
Method Summary | |
---|---|
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. |
abstract org.w3c.dom.NodeList |
getSelectedContent()
Returns a list of nodes that were matched by this selector. |
protected boolean |
isSelected(org.w3c.dom.Node n)
Returns true if the given node has already been selected by a content element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ContentManager contentManager
protected XBLOMContentElement contentElement
protected org.w3c.dom.Element boundElement
protected static java.util.HashMap selectorFactories
Constructor Detail |
---|
public AbstractContentSelector(ContentManager cm, XBLOMContentElement content, org.w3c.dom.Element bound)
Method Detail |
---|
public abstract org.w3c.dom.NodeList getSelectedContent()
protected boolean isSelected(org.w3c.dom.Node n)
public static AbstractContentSelector createSelector(java.lang.String selectorLanguage, ContentManager cm, XBLOMContentElement content, org.w3c.dom.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |