
com.tailf.jnc.ElementLeafListValueIterator Maven / Gradle / Ivy
The newest version!
package com.tailf.jnc;
import java.util.Iterator;
/**
* This is an iterator class that is used for iterating over all leaf-list
* children with a specified name in a NodeSet. An object of this iterator
* class is obtained from the {@link Element#iterator} method.
*
* Example usage:
*
*
* ElementLeafListValueIterator domainIter = config.iterator("domain");
* while (domainIter.hasNext()) {
* String domain = (String) domainIter.next();
* System.out.println("Domain: " + host);
* }
*
*
*/
public class ElementLeafListValueIterator implements Iterator
© 2015 - 2025 Weber Informatics LLC | Privacy Policy