com.jayway.restassured.path.xml.element
Interface NodeChildren

All Superinterfaces:
Iterable<String>, PathElement
All Known Implementing Classes:
NodeChildrenImpl

public interface NodeChildren
extends PathElement

Represent the children of a Node in an XML document.


Method Summary
 Node get(int index)
          The the Node on the nth index
 boolean isEmpty()
           
 List<Node> list()
           
 Iterable<Node> nodeIterable()
           
 Iterator<Node> nodeIterator()
           
 int size()
           
 
Methods inherited from interface com.jayway.restassured.path.xml.element.PathElement
get, getNode, getNodes
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

get

Node get(int index)
The the Node on the nth index

Parameters:
index - The index of the node the get
Returns:
The node

size

int size()
Returns:
The number of children

isEmpty

boolean isEmpty()
Returns:
true if there are no children, false otherwise.

nodeIterable

Iterable<Node> nodeIterable()
Returns:
An iterable of all nodes

nodeIterator

Iterator<Node> nodeIterator()
Returns:
An iterator of all nodes.

list

List<Node> list()
Returns:
The child nodes as a list


Copyright © 2010-2011. All Rights Reserved.