|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.webdocwf.util.loader.EchoElement
EchoElement - Element in parallel to importDefinitions and sql's. The message is to be printed in the log output (screen and logfile) in logmode normal and logmode full.
Field Summary | |
static java.lang.String |
LOGMODE_FULL
|
static java.lang.String |
LOGMODE_NONE
|
static java.lang.String |
LOGMODE_NORMAL
|
Constructor Summary | |
EchoElement()
Public constructor of EchoElement class. |
|
EchoElement(java.io.File output)
Public constructor of EchoElement class. |
|
EchoElement(java.lang.String mode)
Public constructor of EchoElement class. |
|
EchoElement(java.lang.String mode,
java.io.File output)
Public constructor of EchoElement class. |
Method Summary | |
boolean |
createLog(java.lang.String logDir,
java.lang.String fileName)
Metod createLog is used to create log file. |
java.io.File |
getLogFile()
Read log file |
java.lang.String |
getLogMode()
Read logMode |
java.lang.String |
getMessage(java.lang.String key)
Metod getMessage is used to read echo message from Hashtable for key value |
void |
setLogFile(java.io.File output)
Set Log file. |
void |
setLogMode(java.lang.String mode)
Set log mode. |
boolean |
setMessage(java.lang.String key,
java.lang.String value)
Metod setMessage is used to put echo message into Hashtable |
boolean |
writeEcho(java.lang.String strLogTxt)
Metod writeEcho is used to put strLogTxt into log file and on screen depending on the logMode. |
boolean |
writeToLog(java.lang.String strLogMode,
java.lang.String strLogTxt)
Metod writeToLog is used to put strLogTxt into log file and on screen depending on the logMode. |
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.String LOGMODE_NORMAL
public static final java.lang.String LOGMODE_NONE
public static final java.lang.String LOGMODE_FULL
Constructor Detail |
public EchoElement()
public EchoElement(java.io.File output)
public EchoElement(java.lang.String mode)
public EchoElement(java.lang.String mode, java.io.File output)
Method Detail |
public java.lang.String getLogMode()
public void setLogMode(java.lang.String mode)
public java.io.File getLogFile()
public void setLogFile(java.io.File output)
public boolean setMessage(java.lang.String key, java.lang.String value)
key
- Key value for messages (e.g number of echo element in import definition.value
- String message.public java.lang.String getMessage(java.lang.String key)
key
- Key value for message.
public boolean writeEcho(java.lang.String strLogTxt)
strLogTxt
- Text for the screen and log.public boolean writeToLog(java.lang.String strLogMode, java.lang.String strLogTxt)
strLogMode
- Log modes defined in XML file are "none", "normal" or "full"strLogTxt
- Text for the screen and log.public boolean createLog(java.lang.String logDir, java.lang.String fileName) throws LoaderException
logDir
- log directoryfileName
- Name of log file - if value is "default" Loader creates default lo file.
LoaderException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |