public class XmlSetImpl extends AbstractXmlSelector implements XmlSet
XmlSet interface.XmlSet.Conjunction| Modifier and Type | Field and Description |
|---|---|
private XmlSet.Conjunction |
conjunction |
private List<AbstractXmlSelector> |
selectorList |
| Constructor and Description |
|---|
XmlSetImpl(NamespaceContext namespaceContext,
XmlSet.Conjunction conjunction)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSelector(AbstractXmlSelector selector)
This method adds the given
selector to this XmlSet. |
XmlSet.Conjunction |
getConjunction()
This method gets the conjunction used to combine the
child-selectors of this
XmlSet. |
AbstractXmlSelector |
getSelector(int index)
This method gets the child-selector at the given
index. |
int |
getSelectorCount()
This method gets the number of child-selectors combined by this set.
|
void |
toString(StringBuilder stringBuilder)
This method is like
AbstractXmlItem.toString() using the given stringBuilder. |
getNamespaceContexttoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamespaceContext, toStringprivate final XmlSet.Conjunction conjunction
private final List<AbstractXmlSelector> selectorList
public XmlSetImpl(NamespaceContext namespaceContext, XmlSet.Conjunction conjunction)
namespaceContext - is the namespace-context.conjunction - is the conjunction.public XmlSet.Conjunction getConjunction()
XmlSetchild-selectors of this
XmlSet.getConjunction in interface XmlSetpublic AbstractXmlSelector getSelector(int index)
XmlSetindex.getSelector in interface XmlSetindex - is the index of the requested selector. It has to be in the range from 0 to
XmlSet.getSelectorCount()-1.index.public int getSelectorCount()
XmlSetgetSelectorCount in interface XmlSetXmlSet.getSelector(int)public void addSelector(AbstractXmlSelector selector)
selector to this XmlSet.selector - is the selector to add.public void toString(StringBuilder stringBuilder)
AbstractXmlItemAbstractXmlItem.toString() using the given stringBuilder.toString in class AbstractXmlItemstringBuilder - is where to append the string representation to.Copyright © 2001–2016 mmm-Team. All rights reserved.