fr.vergne.parsing.samples.xml.layer.Field 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.standard.Atom;
import fr.vergne.parsing.layer.standard.Formula;
import fr.vergne.parsing.layer.standard.Suite;
public class Field extends Suite {
public Field() {
super(new Blank(), new Formula("[a-z]+"), new Atom("=\""), new Formula(
"[^\"]*"), new Atom("\""), new Blank());
}
public Formula getName() {
return get(1);
}
public Formula getValue() {
return get(3);
}
}