public class QuestionAnswer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_PUBLISHED |
static int |
STATUS_UNPUBLISHED |
| Constructor and Description |
|---|
QuestionAnswer()
Creates a new QuestionAnswer object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAnswer()
Returns the answer associated with this object
|
Date |
getCreationDate() |
int |
getIdOrder() |
int |
getIdQuestionAnswer()
Returns the identifier of the object
|
int |
getIdSubject()
Returns the identifier of the subject
|
String |
getQuestion()
Returns the question associated with this object
|
Subject |
getSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the
Subject |
boolean |
isEnabled()
Returns the status of the object
|
void |
setAnswer(String strAnswer)
Associates a new answer with this object
|
void |
setCreationDate(Date dateCreationDate) |
void |
setIdOrder(int nIdOrder) |
void |
setIdQuestionAnswer(int nIdQuestionAnswer)
Sets the identifier of the object to the specified value
|
void |
setIdSubject(int nIdSubject)
Assigns this QuestionAnswer to a subject
|
void |
setQuestion(String strQuestion)
Associates a new question with this object
|
void |
setStatus(int status)
Sets the status of the object
|
public static final int STATUS_PUBLISHED
public static final int STATUS_UNPUBLISHED
public int getIdQuestionAnswer()
public void setIdQuestionAnswer(int nIdQuestionAnswer)
nIdQuestionAnswer - The new valuepublic String getQuestion()
public void setQuestion(String strQuestion)
strQuestion - The new valuepublic String getAnswer()
public void setAnswer(String strAnswer)
strAnswer - The new valuepublic int getIdSubject()
public Subject getSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Subjectplugin - The pluginSubjectpublic void setIdSubject(int nIdSubject)
nIdSubject - The identifier of the subjectpublic boolean isEnabled()
public void setStatus(int status)
status - 1 to enable the object, any other value to disable itpublic Date getCreationDate()
public void setCreationDate(Date dateCreationDate)
dateCreationDate - the _dateCreation to setpublic int getIdOrder()
public void setIdOrder(int nIdOrder)
nIdOrder - the _nIdOrder to setCopyright © 2015 City of Paris. All rights reserved.