| java.lang.Object net.percederberg.grammatica.ant.ValidationElement
ValidationElement | public class ValidationElement implements ProcessingElement(Code) | | A grammar validation element. This element validates or tests the
grammar in various ways.
author: Per Cederberg, version: 1.4 since: 1.4 |
Method Summary | |
public void | process(Grammar grammar) Proceses the specified grammar. | public void | setInputfile(File file) Sets the input test file. | public void | setQuiet(boolean quiet) Sets the quiet output flag. | public void | setType(String type) Sets the validation type. | public void | validate() Validates all attributes in the element. |
ValidationElement | public ValidationElement()(Code) | | Creates a new validation element.
|
process | public void process(Grammar grammar) throws BuildException(Code) | | Proceses the specified grammar.
Parameters: grammar - the grammar to process throws: BuildException - if the grammar couldn't be processed correctly |
setInputfile | public void setInputfile(File file)(Code) | | Sets the input test file. The test file is not needed for the
debug validation type.
Parameters: file - the input test file |
setQuiet | public void setQuiet(boolean quiet)(Code) | | Sets the quiet output flag.
Parameters: quiet - the quiet output flag |
setType | public void setType(String type)(Code) | | Sets the validation type. The type must be one of "debug",
"tokenize", "parse", or "profile".
Parameters: type - the validation type |
validate | public void validate() throws BuildException(Code) | | Validates all attributes in the element.
throws: BuildException - if some attribute was missing or had aninvalid value |
|
|