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

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

There is a newer version: 2.4
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy