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

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

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

import java.util.Iterator;
import java.util.List;

import fr.vergne.parsing.layer.impl.Atom;
import fr.vergne.parsing.layer.impl.Suite;

public class XmlTree extends Suite implements Iterable {

	public XmlTree() {
		super(new Atom(""), new NodeList(), new Blank(), new Atom(
				""));
	}

	private NodeList getNodeList() {
		return get(1);
	}

	public List getNodes() {
		return getNodeList().getNodes();
	}

	@Override
	public Iterator iterator() {
		return getNodeList().iterator();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy