org.apache.jdo.impl.enhancer
Class EnhancerOptions

java.lang.Object
  extended by org.apache.jdo.impl.enhancer.util.Assertion
      extended by org.apache.jdo.impl.enhancer.util.Support
          extended by org.apache.jdo.impl.enhancer.OptionSet
              extended by org.apache.jdo.impl.enhancer.GenericOptions
                  extended by org.apache.jdo.impl.enhancer.ClassArgOptions
                      extended by org.apache.jdo.impl.enhancer.JdoMetaOptions
                          extended by org.apache.jdo.impl.enhancer.EnhancerOptions

public class EnhancerOptions
extends JdoMetaOptions

Set of options used by the JDO enhancer and its test programs.

Author:
Martin Zaun

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.jdo.impl.enhancer.OptionSet
OptionSet.FlagOption, OptionSet.HelpOption, OptionSet.IntOption, OptionSet.Option, OptionSet.StringOption
 
Field Summary
 OptionSet.StringOption destDir
          The destination directory option.
 OptionSet.FlagOption dumpClass
          The dump class option.
protected  java.io.PrintWriter err
          The stream to write error messages to.
 OptionSet.FlagOption forceWrite
          The force write option.
 OptionSet.FlagOption noAnnotate
          The suppress annotation option.
 OptionSet.FlagOption noAugment
          The suppress augmentation option.
 OptionSet.FlagOption noWrite
          The no write option.
protected  java.io.PrintWriter out
          The stream to write messages to.
 OptionSet.FlagOption quiet
          The quiet option.
 
Fields inherited from class org.apache.jdo.impl.enhancer.JdoMetaOptions
jdoPath, jdoPropertiesFile
 
Fields inherited from class org.apache.jdo.impl.enhancer.ClassArgOptions
archiveFileNames, classFileNames, classNames, sourcePath
 
Fields inherited from class org.apache.jdo.impl.enhancer.GenericOptions
doTiming, help, verbose
 
Fields inherited from class org.apache.jdo.impl.enhancer.OptionSet
abbrevs, arguments, argumentsHeader, indent, lprefix, names, OK, options, optionsHeader, prefix, returnHeader, USAGE_ERROR, usageHeader
 
Fields inherited from class org.apache.jdo.impl.enhancer.util.Support
timer
 
Constructor Summary
EnhancerOptions(java.io.PrintWriter out, java.io.PrintWriter err)
          Creates an instance.
 
Method Summary
 int check()
          Check options and arguments.
protected  void flush()
          Flushes streams.
static void main(java.lang.String[] args)
          Tests the 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.
 void printUsageHeader()
          Print a usage message to System.err.
 
Methods inherited from class org.apache.jdo.impl.enhancer.ClassArgOptions
printArguments, printArgumentUsage, printListArgument
 
Methods inherited from class org.apache.jdo.impl.enhancer.OptionSet
createFlagOption, createFlagOption, createHelpOption, createIntOption, createIntOption, createStringOption, createStringOption, parse, printAll, printArgumentHeader, printOptionHeader, printOptions, printOptionUsage, printReturnHeader, printReturnUsage, printUsage, printUsageError, process, register
 
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

quiet

public final OptionSet.FlagOption quiet
The quiet option.


forceWrite

public final OptionSet.FlagOption forceWrite
The force write option.


noWrite

public final OptionSet.FlagOption noWrite
The no write option.


destDir

public final OptionSet.StringOption destDir
The destination directory option.


dumpClass

public final OptionSet.FlagOption dumpClass
The dump class option.


noAugment

public final OptionSet.FlagOption noAugment
The suppress augmentation option.


noAnnotate

public final OptionSet.FlagOption noAnnotate
The suppress annotation option.


out

protected final java.io.PrintWriter out
The stream to write messages to.


err

protected final java.io.PrintWriter err
The stream to write error messages to.

Constructor Detail

EnhancerOptions

public EnhancerOptions(java.io.PrintWriter out,
                       java.io.PrintWriter err)
Creates an instance.

Method Detail

printUsageHeader

public void printUsageHeader()
Print a usage message to System.err.

Overrides:
printUsageHeader in class JdoMetaOptions

check

public int check()
Check options and arguments.

Overrides:
check in class JdoMetaOptions

main

public static void main(java.lang.String[] args)
Tests the class.


printlnErr

protected void printlnErr(java.lang.String msg,
                          java.lang.Throwable ex,
                          boolean verbose)
Prints out an error message.


printlnErr

protected void printlnErr(java.lang.String msg,
                          java.lang.Throwable ex)
Prints out an error message.


printlnErr

protected void printlnErr(java.lang.String msg)
Prints out an error message.


printlnErr

protected void printlnErr()
Prints out an error message.


print

protected void print(java.lang.String msg)
Prints out a message.


println

protected void println(java.lang.String msg)
Prints out a message.


println

protected void println()
Prints out a message.


flush

protected void flush()
Flushes streams.



Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.