org.hops.common
Class ResponseData

java.lang.Object
  extended by org.hops.common.ResponseData
All Implemented Interfaces:
java.io.Serializable

public class ResponseData
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 java.util.ArrayList expect_attributes
          list of expected attributes.
 java.util.ArrayList grammars
          list of grammars to use.
 java.util.ArrayList systemessage
          System message.
 boolean turn_invalid
          for UserModel updates
 
Constructor Summary
ResponseData()
          Creates a new instance of ResponseData
ResponseData(java.lang.String document)
          Creates a new instance of ResponseData
 
Method Summary
 java.lang.String getDocument()
          Gets the next step in the dialogue
 java.lang.String getLangId()
          Gets the language identification: values are: es_ES ca_ES it_IT en_GB
 java.lang.String getMessage(int i)
           
 void messageReplace(java.lang.String find, java.lang.String replace)
           
 void setDocument(java.lang.String xml_doc)
          Sets a new document
 void setLangId(java.lang.String langId)
          Sets the language identification: valid values are: es_ES ca_ES it_IT en_GB
 java.lang.String toString()
          overrides the toString method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

systemessage

public java.util.ArrayList systemessage
System message. This attribute is used for evaluation pourposes. The array is usually 3 to 5 long. [0] --> main and open [1] --> noinput [2] --> nomatch [3] --> help [4] --> menu


grammars

public java.util.ArrayList grammars
list of grammars to use. This attribute is only used for testing pourposes.


expect_attributes

public java.util.ArrayList expect_attributes
list of expected attributes. This attribute is only used for testing pourposes.


turn_invalid

public boolean turn_invalid
for UserModel updates

Constructor Detail

ResponseData

public ResponseData()
Creates a new instance of ResponseData


ResponseData

public ResponseData(java.lang.String document)
Creates a new instance of ResponseData

Parameters:
document - The next step in the dialogue
Method Detail

getDocument

public java.lang.String getDocument()
Gets the next step in the dialogue


setDocument

public void setDocument(java.lang.String xml_doc)
Sets a new document


getLangId

public java.lang.String getLangId()
Gets the language identification: values are: es_ES ca_ES it_IT en_GB


setLangId

public void setLangId(java.lang.String langId)
Sets the language identification: valid values are: es_ES ca_ES it_IT en_GB


messageReplace

public void messageReplace(java.lang.String find,
                           java.lang.String replace)

getMessage

public java.lang.String getMessage(int i)

toString

public java.lang.String toString()
overrides the toString method

Overrides:
toString in class java.lang.Object