|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.specrunner.source.text.Sentence
public class Sentence
A valid sentence.
| Constructor Summary | |
|---|---|
Sentence(String text)
Creates a sentence with a given text. |
|
| Method Summary | |
|---|---|
DataTable |
getData()
Get data information. |
String |
getMessage()
Get the message content. |
String |
getText()
Get the sentence text. |
boolean |
hasData()
check if a sentence has data table. |
boolean |
hasMessage()
Check if a sentence has a message associated. |
void |
setData(DataTable data)
Set the data table. |
void |
setMessage(String message)
Set the message content. |
void |
setText(String text)
Set the sentence text. |
String |
validate()
Perform object validation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sentence(String text)
text - The text.| Method Detail |
|---|
public String getText()
public void setText(String text)
text - The text.public boolean hasData()
public DataTable getData()
public void setData(DataTable data)
data - The table.public boolean hasMessage()
public String getMessage()
public void setMessage(String message)
message - The message.public String validate()
IValidable
validate in interface IValidable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||