
fr.vergne.parsing.samples.xml.layer.XmlTree Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parsing-samples Show documentation
Show all versions of parsing-samples Show documentation
Examples of uses of the parsing features.
package fr.vergne.parsing.samples.xml.layer;
import java.util.Iterator;
import java.util.List;
import fr.vergne.parsing.layer.standard.Atom;
import fr.vergne.parsing.layer.standard.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 - 2025 Weber Informatics LLC | Privacy Policy