org.exoplatform.faq.service
Class QuestionLanguage

java.lang.Object
  extended by org.exoplatform.faq.service.QuestionLanguage

public class QuestionLanguage
extends Object

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.

Since:
Jul 11, 2007
Author:
Hung Nguyen Quang

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

VIEW

public static final String VIEW

EDIT

public static final String EDIT

ADD_NEW

public static final String ADD_NEW

DELETE

public static final String DELETE
Constructor Detail

QuestionLanguage

public QuestionLanguage()
class constructor.

Method Detail

getLanguage

public String getLanguage()
Get name of language is used to write quetsion.

Returns:
language name of language

setLanguage

public void setLanguage(String lang)
registers name of language for Language node and the name is Language node's name too.

Parameters:
lang - the name of language node

getDetail

public String getDetail()
Get content of question is saved in this language node.

Returns:
content of question in this language

setDetail

public void setDetail(String q)
Registers question content for this language node.

Parameters:
q - the content of question

getQuestion

public String getQuestion()

setQuestion

public void setQuestion(String question)

getAnswers

public Answer[] getAnswers()

setAnswers

public void setAnswers(Answer[] answers)

getComments

public Comment[] getComments()

setComments

public void setComments(Comment[] comments)

getId

public String getId()

setId

public void setId(String id)

setState

public void setState(String state)

getState

public String getState()


Copyright © 2013 eXo Platform SAS. All Rights Reserved.