|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.util.Assertion
org.apache.jdo.impl.enhancer.util.Support
org.apache.jdo.impl.enhancer.LogSupport
org.apache.jdo.impl.enhancer.GenericMain
Base class for JDO command line enhancer and tests.
Field Summary | |
protected java.io.PrintWriter |
err
The stream to write error messages to. |
static int |
INTERNAL_ERROR
|
static int |
OK
|
protected GenericOptions |
options
The options and arguments. |
protected java.io.PrintWriter |
out
The stream to write messages to. |
static int |
USAGE_ERROR
|
static int |
USER_EXCEPTION
|
Fields inherited from class org.apache.jdo.impl.enhancer.util.Support |
timer |
Constructor Summary | |
GenericMain(java.io.PrintWriter out,
java.io.PrintWriter err)
Creates an instance. |
|
GenericMain(java.io.PrintWriter out,
java.io.PrintWriter err,
GenericOptions options)
Creates an instance. |
Method Summary | |
protected void |
flush()
Flushes streams. |
protected void |
init()
Initializes all components. |
static void |
main(java.lang.String[] args)
Runs this class |
protected void |
print(java.lang.String msg)
Prints out a message. |
protected void |
println()
Prints out a message. |
protected void |
println(java.lang.String msg)
Prints out a message. |
protected void |
printlnErr()
Prints out an error message. |
protected void |
printlnErr(java.lang.String msg)
Prints out an error message. |
protected void |
printlnErr(java.lang.String msg,
java.lang.Throwable ex)
Prints out an error message. |
protected void |
printlnErr(java.lang.String msg,
java.lang.Throwable ex,
boolean verbose)
Prints out an error message. |
protected int |
process()
Do processing (to be overloaded by subclasses). |
int |
run(java.lang.String[] args)
Process command line arguments, run initialization and do processing. |
Methods inherited from class org.apache.jdo.impl.enhancer.util.Support |
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N |
Methods inherited from class org.apache.jdo.impl.enhancer.util.Assertion |
affirm, affirm, affirm, affirm |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OK
public static final int USAGE_ERROR
public static final int USER_EXCEPTION
public static final int INTERNAL_ERROR
protected GenericOptions options
protected final java.io.PrintWriter out
protected final java.io.PrintWriter err
Constructor Detail |
public GenericMain(java.io.PrintWriter out, java.io.PrintWriter err)
public GenericMain(java.io.PrintWriter out, java.io.PrintWriter err, GenericOptions options)
Method Detail |
protected void init() throws EnhancerFatalError, EnhancerUserException
EnhancerFatalError
EnhancerUserException
protected int process()
public int run(java.lang.String[] args)
public static void main(java.lang.String[] args)
protected void printlnErr(java.lang.String msg, java.lang.Throwable ex, boolean verbose)
protected void printlnErr(java.lang.String msg, java.lang.Throwable ex)
protected void printlnErr(java.lang.String msg)
protected void printlnErr()
protected void print(java.lang.String msg)
protected void println(java.lang.String msg)
protected void println()
protected void flush()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |