Warning: This is a facade provided for use by user code, not for implementation by user code. User implementations of this interface are highly likely to be incompatible with future releases of the product at both binary and source levels.
@mock.generateA parsed representation of the RFC3028 BNF...
arguments = *argument [test / test-list]
Note that a test is represented as a test-list with a single element.
Then, method likes {@link #getRequiredString} or {@link #getOptionalString} can be used.If a parameter is badly formatted or if a required parameter is not presents, then the method {@link #illegalArgument} will be invoked with a message that describes the error.The default implementation print the localized error message to standard output {@link #out}and exits the virtual machine with a call to {@link System#exit} with error code 1. @since 2.0 @source $URL$ @version $Id$ @author Martin Desruisseaux (IRD)public static void main(String[] args) { Arguments arguments = new Arguments(args); }
Objects of this class contain all the required arguments for template processing.
These objects are created internally by the Template Engine in order to provide processors with all the information they might need for performing their tasks.
Arguments include many attributes, among which some should be used internally only, and never by developers of attribute/element processors. Public attributes are:
option_args* free_formwhere each element in option_args is an option starting with a '-' character and each element in free_form is a string. Option arguments have the syntax:
'-'NAME[=VALUE]where NAME is the option identifier and VALUE is the string argument for that option.
An example use of the class is as follows:
static void main(String[] args) { Arguments cl = new Arguments(); cl.parse(args); if (cl.getOption("verbose") != null) ... ; String file = cl.getArgument(0); String path = cl.getOption("classpath");@author Jan Vitek
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|