fr.vergne.parsing.samples.xml.layer.XmlHeader 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 fr.vergne.parsing.layer.impl.Atom;
import fr.vergne.parsing.layer.impl.Suite;
public class XmlHeader extends Suite {
public XmlHeader() {
super(new Atom(""));
}
public Fields getFields() {
return get(1);
}
public Field getField(String name) {
return getFields().getField(name);
}
public Field getVersion() {
return getField("version");
}
public Field getEncoding() {
return getField("encoding");
}
}