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. |
getNamespaceContexttoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamespaceContext, toStringprivate final List<AbstractXmlPathSegment> segmentList
public XmlPathImpl(NamespaceContext namespaceContext)
namespaceContext - is the namespace-context.public AbstractXmlPathSegment getSegment(int index)
XmlPathindex.getSegment in interface XmlPathindex - is the index of the requested segment. It has to be in the range from 0 to
XmlPath.getSegmentCount()-1.index.public int getSegmentCount()
XmlPathgetSegmentCount in interface XmlPathXmlPath.getSegment(int)public void addSegment(AbstractXmlPathSegment segment)
segment to this path.segment - is the segment 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.