|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.qanavigation.Basics.Rslt
public class Rslt
Constructor Summary | |
---|---|
Rslt()
Default constructor. |
|
Rslt(boolean p_isOK)
Construct with default status 'OK' (true) or 'inError' (false). |
|
Rslt(java.lang.Class p_c)
Constructor for a specific class |
|
Rslt(IRslt p_aRes)
Copy constructor for an Interface implementer. |
|
Rslt(Rslt p_aRes)
Copy constructor for a Rslt object. |
Method Summary | |
---|---|
void |
addRsltAddFailInfo(java.lang.String p_Class,
java.lang.String p_Fnct,
java.lang.String p_AddInf1,
java.lang.String p_AddInf2)
Is plugged together to 'p_Class + "." + p_Fnct + "()" + p_AddInf1 + " failed. " + p_AddInf2'. |
void |
addRsltAddFailInfoIf(java.lang.String p_Class,
java.lang.String p_Fnct,
java.lang.String p_AddInf1,
java.lang.String p_AddInf2)
Is plugged together to 'p_Class + "." + p_Fnct + "()" + p_AddInf1 + " failed. " + p_AddInf2'. |
void |
addRsltAddInfo(IRslt p_aRes)
Copies the result information from the other Rslt. |
void |
addRsltAddInfo(java.lang.String p_AddInfo)
Add additional information to the Rslt. |
void |
addRsltFinalInfo(java.lang.String p_FinalInfo)
Add the final information to the Rslt. |
void |
addRsltInitialInfo(java.lang.String p_AddInfo)
Add initial information to the Rslt. |
boolean |
checkRslt(IRslt p_Res)
Checks the status of the given Rslt and clones the information if its not OK. |
boolean |
checkRslt(IRslt p_Res,
boolean p_EmptyIsOK)
Same as checkRslt( IRslt p_Res ) but tolerates if the result or itself isEmpty. |
boolean |
checkRslt(Rslt p_Res)
Simplify "if( m_DB.notOK() ) { setResStat( m_DB ); } if( isOK() ) { ..." |
boolean |
checkRslt(Rslt p_Res,
boolean p_EmptyIsOK)
|
IRslt |
getRslt()
|
java.util.ArrayList<java.lang.String> |
getRsltAddInfo()
|
java.util.ArrayList<java.lang.String> |
getRsltFinalInfo()
|
java.lang.String |
getRsltFinalMsg()
Returns the last final message. |
java.util.ArrayList<java.lang.String> |
getRsltInitialInfo()
|
java.lang.String |
getRsltInitialMsg()
Returns the first of the messages on the message stack. |
int |
getRsltStatVal()
|
java.lang.String |
getRsltStatValLbl()
|
boolean |
isInStat(int p_Stat)
Check for the requested status. |
boolean |
isOK()
If it is RsltStatVal.isOK it's OK; |
boolean |
isOK(boolean p_EmptyIsOK)
|
boolean |
notOK()
Anything that is not isOK() is not OK; |
boolean |
notOK(boolean p_EmptyIsOK)
|
void |
resetRslt()
Set back to OK, dumps all messages. |
void |
setInError(java.lang.String p_ErrMsg)
Sets the status to "In Error" and adds the messages to the list of messages. |
void |
setOK()
|
void |
setRsltByExcp(java.lang.Exception p_Excp)
Sets the Rslt in Error and collects the information from the exception. |
void |
setRsltByExcp(java.io.IOException p_Excp)
Sets the Rslt in Error and collects the information from the exception. |
void |
setRsltByExcp(java.lang.Throwable p_Excp)
Sets the Rslt in Error and collects the information from the exception. |
void |
setRsltStat(int p_aResStat)
Sets the status to the given state. |
void |
setRsltStat(int p_aResStat,
java.lang.String p_ErrMsg)
Set Rslt status by status value, with message. |
void |
setRsltStat(IRslt p_aRes)
Set Rslt status from another Rslt. |
void |
setRsltStat(IRslt p_aRes,
java.lang.String p_ErrMsg)
Set Rslt status from another Rslt with message. |
void |
setSelfReflect()
Gets information about the class. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rslt()
public Rslt(boolean p_isOK)
p_isOK
- public Rslt(java.lang.Class p_c)
p_c
- public Rslt(IRslt p_aRes)
p_aRes
- public Rslt(Rslt p_aRes)
p_aRes
- Method Detail |
---|
public void addRsltAddFailInfo(java.lang.String p_Class, java.lang.String p_Fnct, java.lang.String p_AddInf1, java.lang.String p_AddInf2)
addRsltAddFailInfo
in interface IRslt
p_Class
- p_Fnct
- p_AddInf1
- p_AddInf2
- public void addRsltAddFailInfoIf(java.lang.String p_Class, java.lang.String p_Fnct, java.lang.String p_AddInf1, java.lang.String p_AddInf2)
p_Class
- p_Fnct
- p_AddInf1
- p_AddInf2
- public void addRsltAddInfo(IRslt p_aRes)
addRsltAddInfo
in interface IRslt
p_aRes
- public void addRsltAddInfo(java.lang.String p_AddInfo)
addRsltAddInfo
in interface IRslt
p_AddInfo
- public void addRsltFinalInfo(java.lang.String p_FinalInfo)
addRsltFinalInfo
in interface IRslt
p_FinalInfo
- public void addRsltInitialInfo(java.lang.String p_AddInfo)
addRsltInitialInfo
in interface IRslt
p_AddInfo
- public boolean checkRslt(IRslt p_Res)
Simplifies code sequences like "if( m_DB.notOK() ) { res.setResStat( m_DB ); } if( res.isOK() ) { ..." to "if( res.checkRes( m_DB ) ) {... "
checkRslt
in interface IRslt
p_Res
-
public boolean checkRslt(IRslt p_Res, boolean p_EmptyIsOK)
checkRslt
in interface IRslt
p_Res
- p_EmptyIsOK
-
public boolean checkRslt(Rslt p_Res)
Simplify "if( m_DB.notOK() ) { setResStat( m_DB ); } if( isOK() ) { ..." to "if( checkRes( m_DB ) ) {... "
p_Res
-
public boolean checkRslt(Rslt p_Res, boolean p_EmptyIsOK)
p_Res
- p_EmptyIsOK
- public IRslt getRslt()
getRslt
in interface IRslt
public java.util.ArrayList<java.lang.String> getRsltAddInfo()
getRsltAddInfo
in interface IRslt
public java.util.ArrayList<java.lang.String> getRsltFinalInfo()
getRsltFinalInfo
in interface IRslt
public java.util.ArrayList<java.lang.String> getRsltInitialInfo()
getRsltInitialInfo
in interface IRslt
public java.lang.String getRsltInitialMsg()
getRsltInitialMsg
in interface IRslt
public java.lang.String getRsltFinalMsg()
getRsltFinalMsg
in interface IRslt
public int getRsltStatVal()
getRsltStatVal
in interface IRslt
public java.lang.String getRsltStatValLbl()
getRsltStatValLbl
in interface IRslt
public boolean isInStat(int p_Stat)
isInStat
in interface IRslt
p_Stat
-
public boolean isOK()
isOK
in interface IRslt
public boolean isOK(boolean p_EmptyIsOK)
isOK
in interface IRslt
p_EmptyIsOK
-
public boolean notOK()
notOK
in interface IRslt
public boolean notOK(boolean p_EmptyIsOK)
notOK
in interface IRslt
p_EmptyIsOK
-
public void resetRslt()
resetRslt
in interface IRslt
public void setInError(java.lang.String p_ErrMsg)
setInError
in interface IRslt
p_ErrMsg
- public void setOK()
setOK
in interface IRslt
public void setRsltByExcp(java.lang.Exception p_Excp)
setRsltByExcp
in interface IRslt
p_Excp
- public void setRsltByExcp(java.lang.Throwable p_Excp)
p_Excp
- public void setRsltByExcp(java.io.IOException p_Excp)
p_Excp
- public void setRsltStat(int p_aResStat)
setRsltStat
in interface IRslt
p_aResStat
- public void setRsltStat(int p_aResStat, java.lang.String p_ErrMsg)
setRsltStat
in interface IRslt
p_aResStat
- p_ErrMsg
- public void setRsltStat(IRslt p_aRes)
setRsltStat
in interface IRslt
p_aRes
- public void setRsltStat(IRslt p_aRes, java.lang.String p_ErrMsg)
setRsltStat
in interface IRslt
p_aRes
- p_ErrMsg
- public void setSelfReflect()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |