public abstract class Application
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
XMLFileName
XML configuration file name
|
Constructor and Description |
---|
Application()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected int |
askIndexSetFromUser(IndexSetList list)
Asks the user which index set is to be selected from the index set list
|
protected int |
askIndexSetFromUser(IndexSetList list,
java.lang.String question)
Asks the user which index set is to be selected from the index set list
|
protected void |
canRunWithoutArgument(boolean can)
Sets if the application can run without argument
|
protected java.lang.String |
getArgumentValue(java.lang.String flag)
Returns the value defined by the given attribute flag
|
protected java.lang.String |
getLogFileName()
Returns the name of log file
|
protected boolean |
isArgumentGiven(java.lang.String flag)
Returns true if the attribute defined by the given flag was called by the user
|
protected void |
run(java.lang.String[] args)
Don't override this method!
|
protected abstract void |
runCore()
You can override this method to include your own code.
|
protected void |
setLogFileName(java.lang.String filename)
Sets the name of log file
|
protected void |
setWritingToLogFile(boolean write)
Sets if the application writes log file
|
protected void |
writeToLogFile(java.lang.String text)
Sets if the application writes log file
|
protected void run(java.lang.String[] args)
protected abstract void runCore()
protected boolean isArgumentGiven(java.lang.String flag)
flag
- attribute flagprotected java.lang.String getArgumentValue(java.lang.String flag)
flag
- attribute flagprotected int askIndexSetFromUser(IndexSetList list, java.lang.String question)
list
- index set list to select fromquestion
- question to be askedprotected int askIndexSetFromUser(IndexSetList list)
list
- index set list to select fromprotected void canRunWithoutArgument(boolean can)
can
- true if the application runs without argumentprotected void setWritingToLogFile(boolean write)
write
- true if the application writes log fileprotected void setLogFileName(java.lang.String filename)
filename
- name of log fileprotected void writeToLogFile(java.lang.String text)
write
- true if the application writes log fileprotected java.lang.String getLogFileName()