|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.faq.service.QuestionLanguage
public class QuestionLanguage
A question may be have multiple languages, user can write his question in one language or all languages are supported by portal (if he can). But only language is default will be set into question's property while other languages is saved as children node of question node. Each language node only contain three properties are name of language is used, content of question, content of response. And Language node's name is language's name too.
| Field Summary | |
|---|---|
static String |
ADD_NEW
|
static String |
DELETE
|
static String |
EDIT
|
static String |
VIEW
|
| Constructor Summary | |
|---|---|
QuestionLanguage()
class constructor. |
|
| Method Summary | |
|---|---|
Answer[] |
getAnswers()
|
Comment[] |
getComments()
|
String |
getDetail()
Get content of question is saved in this language node. |
String |
getId()
|
String |
getLanguage()
Get name of language is used to write quetsion. |
String |
getQuestion()
|
String |
getState()
|
void |
setAnswers(Answer[] answers)
|
void |
setComments(Comment[] comments)
|
void |
setDetail(String q)
Registers question content for this language node. |
void |
setId(String id)
|
void |
setLanguage(String lang)
registers name of language for Language node and the name is Language node's name too. |
void |
setQuestion(String question)
|
void |
setState(String state)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VIEW
public static final String EDIT
public static final String ADD_NEW
public static final String DELETE
| Constructor Detail |
|---|
public QuestionLanguage()
| Method Detail |
|---|
public String getLanguage()
public void setLanguage(String lang)
lang - the name of language nodepublic String getDetail()
public void setDetail(String q)
q - the content of questionpublic String getQuestion()
public void setQuestion(String question)
public Answer[] getAnswers()
public void setAnswers(Answer[] answers)
public Comment[] getComments()
public void setComments(Comment[] comments)
public String getId()
public void setId(String id)
public void setState(String state)
public String getState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||