org.exoplatform.faq.service
Class QuestionLanguage

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

public class QuestionLanguage
extends java.lang.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 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

VIEW

public static final java.lang.String VIEW

EDIT

public static final java.lang.String EDIT

ADD_NEW

public static final java.lang.String ADD_NEW

DELETE

public static final java.lang.String DELETE
Constructor Detail

QuestionLanguage

public QuestionLanguage()
class constructor.

Method Detail

getLanguage

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

Returns:
language name of language

setLanguage

public void setLanguage(java.lang.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 java.lang.String getDetail()
Get content of question is saved in this language node.

Returns:
content of question in this language

setDetail

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

Parameters:
q - the content of question

getQuestion

public java.lang.String getQuestion()

setQuestion

public void setQuestion(java.lang.String question)

getAnswers

public Answer[] getAnswers()

setAnswers

public void setAnswers(Answer[] answers)

getComments

public Comment[] getComments()

setComments

public void setComments(Comment[] comments)

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

setState

public void setState(java.lang.String state)

getState

public java.lang.String getState()


Copyright © 2011 eXo Platform SAS. All Rights Reserved.