|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.whatsnew.mode.Mode
The abtract application execution mode
Field Summary | |
static java.lang.Integer |
CHANGE
Mode new file change |
protected Options |
options
Application options |
static java.lang.Integer |
RELEASE
Mode new file release |
Constructor Summary | |
Mode(Options options)
Constructs a new execution mode |
Method Summary | |
protected void |
checkOptions()
Validade minimal mode options |
protected abstract ConcatFilter |
getConcatFilter()
Get concatenation filter to use |
protected abstract Filter[] |
getExtraFilters()
Get the filters to be applied to extra input |
protected abstract java.lang.String[] |
getExtraInput()
Get extra input |
static Mode |
getFactory(Options options)
Instantiates a new application mode |
protected abstract Filter[] |
getFileFilters()
Get the filters to be applied to file input |
protected abstract java.lang.String[] |
getFileInput(java.io.File inputFile)
Get file input |
protected abstract OutputWriter |
getOutputWriter()
Get output writer |
void |
run()
Main mode execution method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.Integer CHANGE
public static final java.lang.Integer RELEASE
protected Options options
Constructor Detail |
public Mode(Options options) throws AppException
options
- Application optionsAppException
- in case of options checking errorMethod Detail |
public static Mode getFactory(Options options) throws AppException
options
- Application optionsAppException
- in case of errorpublic void run() throws AppException
AppException
- in case of errorprotected abstract ConcatFilter getConcatFilter() throws AppException
AppException
- in case of errorprotected abstract Filter[] getExtraFilters() throws AppException
AppException
- in case of errorprotected abstract java.lang.String[] getExtraInput() throws AppException
AppException
- in case of errorprotected abstract Filter[] getFileFilters() throws AppException
AppException
- in case of errorprotected abstract java.lang.String[] getFileInput(java.io.File inputFile) throws AppException
inputFile
- The file to useAppException
- in case of errorprotected abstract OutputWriter getOutputWriter() throws AppException
AppException
- in case of errorprotected void checkOptions() throws AppException
AppException
- in case of error
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |