public class XmlPathImpl extends AbstractXmlSelector implements XmlPath
XmlPath
interface.Modifier and Type | Field and Description |
---|---|
private List<AbstractXmlPathSegment> |
segmentList |
Constructor and Description |
---|
XmlPathImpl(NamespaceContext namespaceContext)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSegment(AbstractXmlPathSegment segment)
This method adds the given
segment to this path. |
AbstractXmlPathSegment |
getSegment(int index)
This method gets the segment at the given
index . |
int |
getSegmentCount()
This method gets the number of segments this path is build of.
|
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 List<AbstractXmlPathSegment> segmentList
public XmlPathImpl(NamespaceContext namespaceContext)
namespaceContext
- is the namespace-context
.public AbstractXmlPathSegment getSegment(int index)
XmlPath
index
.getSegment
in interface XmlPath
index
- is the index of the requested segment. It has to be in the range from 0
to
XmlPath.getSegmentCount()
-1
.index
.public int getSegmentCount()
XmlPath
getSegmentCount
in interface XmlPath
XmlPath.getSegment(int)
public void addSegment(AbstractXmlPathSegment segment)
segment
to this path.segment
- is the segment 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.