org.objectweb.jorm.comp.cmdline.api
Interface CmdLineParser
- All Known Implementing Classes:
- RdbMapperOption
- public interface CmdLineParser
The CmdLineParser interface is used to create extension of the main command
line. This object is composed by two methods, the first one allows to parse
a list of argument starting from an index, and the second one, allows to
parse a property (string), and assigns it a value.
- Author:
- X. Spengler
|
Method Summary |
int |
parseArgument(java.lang.String[] args,
int i)
Parses options from a command line and returns the next index in the
list of arguments when encounters an unknown option. |
void |
parseProperty(java.lang.String elem,
java.lang.String value)
Assigns to the elem tag, the corresponding value. |
parseArgument
public int parseArgument(java.lang.String[] args,
int i)
- Parses options from a command line and returns the next index in the
list of arguments when encounters an unknown option.
This method is used by the CommandLineParser to parse unknows option
which are in link with the current object.
- Parameters:
args - the list of arguments. This list contains known options for
the current object to the beginning of the list, and
unknown options to the end of the list.i - the current index to parse the args list- Returns:
- the new current index to continue the parsing
parseProperty
public void parseProperty(java.lang.String elem,
java.lang.String value)
- Assigns to the elem tag, the corresponding value.
This method is used by the CompilerParameter when the jorm.properties
is read.
- Parameters:
elem - the element which is found in the jorm.properties filevalue - the value of the corresponding property