public class Sentence extends Object implements IValidable
| Modifier and Type | Field and Description |
|---|---|
protected DataTable |
data
The data of the sentence, if any.
|
protected String |
message
The message of the sentence, if any.
|
protected String |
text
The text of sentence.
|
| Constructor and Description |
|---|
Sentence(String text)
Creates a sentence with a given text.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected String text
protected DataTable data
protected String message
public Sentence(String text)
text - The text.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()
IValidablevalidate in interface IValidableCopyright © 2017. All rights reserved.