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 . |
getNamespaceContext
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNamespaceContext, toString
private 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()
XmlSet
child-selectors
of this
XmlSet
.getConjunction
in interface XmlSet
public AbstractXmlSelector getSelector(int index)
XmlSet
index
.getSelector
in interface XmlSet
index
- is the index of the requested selector. It has to be in the range from 0
to
XmlSet.getSelectorCount()
-1
.index
.public int getSelectorCount()
XmlSet
getSelectorCount
in interface XmlSet
XmlSet.getSelector(int)
public void addSelector(AbstractXmlSelector selector)
selector
to this XmlSet
.selector
- is the selector to add.public void toString(StringBuilder stringBuilder)
AbstractXmlItem
AbstractXmlItem.toString()
using the given stringBuilder
.toString
in class AbstractXmlItem
stringBuilder
- is where to append the string representation to.Copyright © 2001–2016 mmm-Team. All rights reserved.