All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.vergne.parsing.samples.xml.layer.NodeList Maven / Gradle / Ivy

There is a newer version: 2.4
Show newest version
package fr.vergne.parsing.samples.xml.layer;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

import fr.vergne.parsing.layer.impl.Loop;

public class NodeList extends Loop {

	public NodeList() {
		super(new Generator() {

			@Override
			public Node generates() {
				return new Node();
			}
		});
	}

	public List getNodes() {
		List nodes = new LinkedList();
		for (Node node : this) {
			nodes.add(node);
		}
		return Collections.unmodifiableList(nodes);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy