|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.core.AbstractDateStamped
org.davesag.generica.core.AbstractContent
org.davesag.generica.core.Faq
This Faq bean is a basic Localisable, Persitable FAQ entry with
a question and answer.
| Field Summary | |
protected String |
theAnswer
the answer |
protected String |
theQuestion
the question |
| Fields inherited from class org.davesag.generica.core.AbstractContent |
theCountryCode, theLanguageCode |
| Fields inherited from class org.davesag.generica.core.AbstractDateStamped |
theCreated, theId, theLastModified |
| Constructor Summary | |
Faq()
null constructor required by hibernate. |
|
Faq(String q,
String a,
Locale loc)
constructor takes a question, answer and locale. |
|
Faq(String q,
String a,
String lang)
constructor takes a question, answer and language code. |
|
| Method Summary | |
boolean |
equals(Object o)
Tests if the supplied object is equal to this Faq, ie do
they have the same Id? |
String |
getAnswer()
Get the answer to this Faq. |
String |
getQuestion()
Get the author of this Faq. |
int |
hashcode()
Objects must override the hashcode if they override the equals method. |
void |
setAnswer(String a)
Set the Faq's answer. |
void |
setQuestion(String q)
Set the Faq's question. |
String |
toString()
The faq question and answer.. |
| Methods inherited from class org.davesag.generica.core.AbstractContent |
getCountryCode, getLanguageCode, getLocale, setCountryCode, setLanguageCode, setLocale |
| Methods inherited from class org.davesag.generica.core.AbstractDateStamped |
getCreated, getId, getLastModified, setCreated, setId, setLastModified, setTemplateId |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.davesag.generica.core.DateStamped |
getCreated, getLastModified, setCreated, setLastModified |
| Field Detail |
protected String theQuestion
protected String theAnswer
| Constructor Detail |
public Faq()
public Faq(String q,
String a,
String lang)
q - The Question.a - The Answer.lang - The Language Code.
public Faq(String q,
String a,
Locale loc)
q - The Question.a - The Answer.loc - The Locale.| Method Detail |
public String getQuestion()
Faq.
Faq.public void setQuestion(String q)
Faq's question.
q - The question.public String getAnswer()
Faq.
Faq.public void setAnswer(String a)
Faq's answer.
a - The answer of this Faq.public String toString()
toString in class AbstractContentpublic boolean equals(Object o)
Faq, ie do
they have the same Id?
equals in class AbstractContento - The object to test against this Faq. Must also
be a Faq to make sense.
public int hashcode()
hashcode in class AbstractContent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||