public class IterableXPath extends Object implements Iterable<String>
For example, if xPath = "Header/Request/SomeValue"
, then iterators returned by iterator()
will return "Header"
, "Request"
, and "SomeValue"
, in that
order.
Constructor and Description |
---|
IterableXPath(String xPath) |
Modifier and Type | Method and Description |
---|---|
String |
getXPath() |
Iterator<String> |
iterator()
Returns an iterator over the elements of
getXPath() . |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public String getXPath()
public Iterator<String> iterator()
getXPath()
. If getXPath()
is null
or empty, the returned iterator will be empty.Copyright © 2018. All Rights Reserved.