|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.jomc.cli.Jomc
@Generated(value="org.jomc.tools.JavaSources",
comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools")
public class JomcJOMC command line interface.
Properties
debugOptionLongName"
Property of typejava.lang.String.Long name of the 'debug' option.
debugOptionShortName"
Property of typejava.lang.String.Name of the 'debug' option.
descPad"
Property of typeint.The number of characters of padding to be prefixed to each description line.
failOnWarningsOptionLongName"
Property of typejava.lang.String.Long name of the 'fail-on-warnings' option.
failOnWarningsOptionShortName"
Property of typejava.lang.String.Name of the 'fail-on-warnings' option.
helpCommandName"
Property of typejava.lang.String.The name of the command used to request help.
leftPad"
Property of typeint.The number of characters of padding to be prefixed to each line.
verboseOptionLongName"
Property of typejava.lang.String.Long name of the 'verbose' option.
verboseOptionShortName"
Property of typejava.lang.String.Name of the 'verbose' option.
width"
Property of typeint.The number of characters per line for the usage statement.
Dependencies
Commands"
Dependency on org.jomc.cli.Command at specification level 1.0-alpha-11.Locale"
Dependency on java.util.Locale at specification level 1.1 bound to an instance.Messages
commandLineInfo"| English: | Command line:
{0} |
| Deutsch: | Kommandozeile:
{0} |
debugOption"| English: | Enables debug output. |
| Deutsch: | Aktiviert Diagnose-Ausgaben. |
failOnWarningsOption"| English: | Exit with failure on warnings. |
| Deutsch: | Bei Warnungen Fehler melden. |
illegalArguments"| English: | Illegal arguments. Type »jomc {0} {1}« for further information. |
| Deutsch: | Ungültige Argumente. Geben Sie »jomc {0} {1}« für weitere Informationen ein. |
usage"| English: | Type »jomc <command> {0}« for further information. |
| Deutsch: | Geben Sie »jomc <Befehl> {0}« für weitere Informationen ein. |
verboseOption"| English: | Enables verbose output. |
| Deutsch: | Aktiviert ausführliche Ausgaben. |
| Constructor Summary | |
|---|---|
Jomc()
Creates a new Jomc instance. |
|
| Method Summary | |
|---|---|
org.apache.commons.cli.Option |
getDebugOption()
|
static Level |
getDefaultLogLevel()
Gets the default log level events are logged at. |
org.apache.commons.cli.Option |
getFailOnWarningsOption()
|
Level |
getLogLevel()
Gets the log level of the instance. |
PrintWriter |
getPrintWriter()
Gets the print writer of the instance. |
org.apache.commons.cli.Option |
getVerboseOption()
|
boolean |
isLoggable(Level level)
Checks if a message at a given level is provided to the listeners of the instance. |
int |
jomc(String[] args)
Processes the given arguments and executes the corresponding command. |
protected void |
log(Level level,
String message,
Throwable throwable)
Logs to the print writer of the instance. |
static void |
main(String[] args)
Main entry point. |
static int |
run(String[] args)
Main entry point without exiting the VM. |
static void |
setDefaultLogLevel(Level value)
Sets the default log level events are logged at. |
void |
setLogLevel(Level value)
Sets the log level of the instance. |
void |
setPrintWriter(PrintWriter value)
Sets the print writer of the instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Generated(value="org.jomc.tools.JavaSources",
comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools")
public Jomc()
Jomc instance.
| Method Detail |
|---|
public PrintWriter getPrintWriter()
public void setPrintWriter(PrintWriter value)
value - The new print writer of the instance or null.public static Level getDefaultLogLevel()
The default log level is controlled by system property org.jomc.cli.Jomc.defaultLogLevel holding the
log level to log events at by default. If that property is not set, the WARNING default is returned.
getLogLevel(),
Level.parse(java.lang.String)public static void setDefaultLogLevel(Level value)
value - The new default level events are logged at or null.getDefaultLogLevel()public Level getLogLevel()
getDefaultLogLevel(),
setLogLevel(java.util.logging.Level),
isLoggable(java.util.logging.Level)public void setLogLevel(Level value)
value - The new log level of the instance or null.getLogLevel(),
isLoggable(java.util.logging.Level)public boolean isLoggable(Level level)
level - The level to test.
true if messages at level are provided to the listeners of the instance;
false if messages at level are not provided to the listeners of the instance.
NullPointerException - if level is null.getLogLevel(),
setLogLevel(java.util.logging.Level)public org.apache.commons.cli.Option getVerboseOption()
public org.apache.commons.cli.Option getDebugOption()
public org.apache.commons.cli.Option getFailOnWarningsOption()
public int jomc(String[] args)
args - Arguments to process.
Command.STATUS_SUCCESS,
Command.STATUS_FAILUREpublic static void main(String[] args)
args - The application arguments.public static int run(String[] args)
args - The application arguments.
Command.STATUS_SUCCESS,
Command.STATUS_FAILURE
protected void log(Level level,
String message,
Throwable throwable)
level - The level of the event.message - The message of the event or null.throwable - The throwable of the event null.
NullPointerException - if level is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||