|
||||||||||
| 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 java.lang.String |
ADD_NEW
|
static java.lang.String |
DELETE
|
static java.lang.String |
EDIT
|
static java.lang.String |
VIEW
|
| Constructor Summary | |
|---|---|
QuestionLanguage()
class constructor. |
|
| Method Summary | |
|---|---|
Answer[] |
getAnswers()
|
Comment[] |
getComments()
|
java.lang.String |
getDetail()
Get content of question is saved in this language node. |
java.lang.String |
getId()
|
java.lang.String |
getLanguage()
Get name of language is used to write quetsion. |
java.lang.String |
getQuestion()
|
java.lang.String |
getState()
|
void |
setAnswers(Answer[] answers)
|
void |
setComments(Comment[] comments)
|
void |
setDetail(java.lang.String q)
Registers question content for this language node. |
void |
setId(java.lang.String id)
|
void |
setLanguage(java.lang.String lang)
registers name of language for Language node and the name is Language node's name too. |
void |
setQuestion(java.lang.String question)
|
void |
setState(java.lang.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 java.lang.String VIEW
public static final java.lang.String EDIT
public static final java.lang.String ADD_NEW
public static final java.lang.String DELETE
| Constructor Detail |
|---|
public QuestionLanguage()
| Method Detail |
|---|
public java.lang.String getLanguage()
public void setLanguage(java.lang.String lang)
lang - the name of language nodepublic java.lang.String getDetail()
public void setDetail(java.lang.String q)
q - the content of questionpublic java.lang.String getQuestion()
public void setQuestion(java.lang.String question)
public Answer[] getAnswers()
public void setAnswers(Answer[] answers)
public Comment[] getComments()
public void setComments(Comment[] comments)
public java.lang.String getId()
public void setId(java.lang.String id)
public void setState(java.lang.String state)
public java.lang.String getState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||