|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tools.jinniengineanswer.JinniEngineAnswer
public class JinniEngineAnswer
This is an answer object used to check out an answer given by the JinnIde server which allows one using the JinnIde server as validation system or framework. It basically serves to find true or false anwers through the isValid method. More detailed answers are still simply dealt with using the getAnswer method which just returns the answer of Jinni as a String
Constructor Summary | |
---|---|
JinniEngineAnswer()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.lang.String |
getAnswer()
This is for a more general application where more than just a true or false is needed as output information. |
boolean |
isValid()
This is a pure validation means and allows asking the validity, in other words the truth value of the query related to this answer object |
void |
setAnswer(java.lang.String anAnswer)
Sets the query response; should only be used on the pure Prolog Jinni side |
void |
setException(JinniEngineException ex)
Sets the Java exception as an equivalent of the Jinni Prolog exception that has been thrown on the Jinni Prolog side; is only used on the pure Prolog Jinni side |
void |
setValid(java.lang.String booleanValue)
Sets the truth value of the query response; should only be used on the pure Prolog Jinni side |
java.lang.String |
tellValid()
same as isValid except for it returning String versions of the truth value to make it easy to check from within Jinni |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JinniEngineAnswer()
Method Detail |
---|
public java.lang.String getAnswer() throws JinniEngineException
JinniEngineException
public boolean isValid() throws JinniEngineException
JinniEngineException
- when an exception was thrown at the time the related query was asked
which is usually a child of JinniEngineException that identifies the occurred, more specific exceptionpublic java.lang.String tellValid() throws JinniEngineException
JinniEngineException
- when an exception was thrown at the time the related query was asked
which is usually a child of JinniEngineException that identifies the occurred, more specific exceptionpublic void setAnswer(java.lang.String anAnswer)
anAnswer
- query response of Jinnipublic void setValid(java.lang.String booleanValue)
booleanValue
- the truth value to be setpublic void setException(JinniEngineException ex)
ex
- the exception to be set usually a sub class instance of JinniEngineExceptionpublic java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |