Class Question
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.Question
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Question extends Object implements Serializable, Cloneable
This is the business class for the object Question- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Questionclone()booleanequals(Object o)StringgetCode()Get the code of the questionStringgetColumnTitle()Get the column title booleanStringgetDescription()Returns the Descriptionfr.paris.lutece.plugins.genericattributes.business.EntrygetEntry()Returns the EntryintgetExportDisplayOrder()intgetId()Returns the IdintgetIdEntry()Returns the IdEntryintgetIdStep()intgetIterationNumber()Returns the iteration numberintgetMultiviewColumnOrder()StepgetStep()StringgetTitle()Returns the TitleinthashCode()booleanisFiltrableMultiviewFormSelected()Return true if the response list page is filtrable when form is selected by this question, false otherwisebooleanisFiltrableMultiviewGlobal()Return true if the response list page is filtrable globally by this question, false otherwisebooleanisPublished()Return the responses published booleanbooleanisResponseExportable()Return the responses exportable booleanbooleanisResponsesIndexed()Return the responses index booleanbooleanisVisible()booleanisVisibleMultiviewFormSelected()Get visible multiview form selected booleanbooleanisVisibleMultiviewGlobal()Get the is visible Multiview Global booleanvoidsetCode(String strCode)Set the code of the questionvoidsetColumnTitle(String strColumnTitle)Set the column titlevoidsetDescription(String strDescription)Sets the DescriptionvoidsetEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry)Sets the EntryvoidsetExportDisplayOrder(int nExportDisplayOrder)voidsetFiltrableMultiviewFormSelected(boolean bIsFiltrableMultiviewFormSelected)Set the multiview filtrable booleanvoidsetFiltrableMultiviewGlobal(boolean bIsFiltrableMultiviewGlobal)Set the multiview filtrable booleanvoidsetId(int nId)Sets the IdvoidsetIdEntry(int nIdEntry)Sets the IdEntryvoidsetIdStep(int nIdStep)voidsetIsVisible(boolean isVisible)voidsetIterationNumber(int nIterationNumber)Sets the iteration numbervoidsetMultiviewColumnOrder(int nMultiviewColumnOrder)voidsetStep(Step step)voidsetTitle(String strTitle)Sets the TitlevoidsetVisibleMultiviewFormSelected(boolean bIsVisibleMultiviewFormSelected)Set the visible multiview form selected booleanvoidsetVisibleMultiviewGlobal(boolean bIsVisibleMultiviewGlobal)Set the is vibile Multiview Global boolean
-
-
-
Constructor Detail
-
Question
public Question()
Default constructor
-
Question
public Question(Question source)
Copy constructor Leaves out dynamic data- Parameters:
source- Question to copy
-
-
Method Detail
-
getId
public int getId()
Returns the Id- Returns:
- The Id
-
setId
public void setId(int nId)
Sets the Id- Parameters:
nId- The Id
-
isVisible
public boolean isVisible()
- Returns:
- the isVisible
-
setIsVisible
public void setIsVisible(boolean isVisible)
- Parameters:
isVisible- the isVisible to set
-
getTitle
public String getTitle()
Returns the Title- Returns:
- The Title
-
setTitle
public void setTitle(String strTitle)
Sets the Title- Parameters:
strTitle- The Title
-
getCode
public String getCode()
Get the code of the question- Returns:
- the code of the question
-
setCode
public void setCode(String strCode)
Set the code of the question- Parameters:
strCode- the code of the question
-
getDescription
public String getDescription()
Returns the Description- Returns:
- The Description
-
setDescription
public void setDescription(String strDescription)
Sets the Description- Parameters:
strDescription- The Description
-
getIdEntry
public int getIdEntry()
Returns the IdEntry- Returns:
- The IdEntry
-
setIdEntry
public void setIdEntry(int nIdEntry)
Sets the IdEntry- Parameters:
nIdEntry- The IdEntry
-
getEntry
public fr.paris.lutece.plugins.genericattributes.business.Entry getEntry()
Returns the Entry- Returns:
- The Entry
-
setEntry
public void setEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
Sets the Entry- Parameters:
entry- The Entry
-
getIdStep
public int getIdStep()
- Returns:
- the _nIdStep
-
setIdStep
public void setIdStep(int nIdStep)
- Parameters:
nIdStep- the nIdStep to set
-
getStep
public Step getStep()
- Returns:
- the _step
-
setStep
public void setStep(Step step)
- Parameters:
step- the step to set
-
getIterationNumber
public int getIterationNumber()
Returns the iteration number- Returns:
- The iteration number
-
setIterationNumber
public void setIterationNumber(int nIterationNumber)
Sets the iteration number- Parameters:
nIterationNumber- The iteration number
-
clone
public Question clone() throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
-
isResponsesIndexed
public boolean isResponsesIndexed()
Return the responses index boolean- Returns:
- true if the responses of this question are indexed, false otherwise
-
isResponseExportable
public boolean isResponseExportable()
Return the responses exportable boolean- Returns:
- true if the responses of this question are exportable, false otherwise
-
isPublished
public boolean isPublished()
Return the responses published boolean- Returns:
- true if the responses of this question are published, false otherwise
-
isVisibleMultiviewGlobal
public boolean isVisibleMultiviewGlobal()
Get the is visible Multiview Global boolean- Returns:
- true if the question need to be see globally, false otherwise
-
setVisibleMultiviewGlobal
public void setVisibleMultiviewGlobal(boolean bIsVisibleMultiviewGlobal)
Set the is vibile Multiview Global boolean- Parameters:
bIsVisibleMultiviewGlobal- the boolean
-
getColumnTitle
public String getColumnTitle()
Get the column title boolean- Returns:
- the column title
-
setColumnTitle
public void setColumnTitle(String strColumnTitle)
Set the column title- Parameters:
strColumnTitle-
-
isVisibleMultiviewFormSelected
public boolean isVisibleMultiviewFormSelected()
Get visible multiview form selected boolean- Returns:
- true if the column has to be see only if the form is selected
-
setVisibleMultiviewFormSelected
public void setVisibleMultiviewFormSelected(boolean bIsVisibleMultiviewFormSelected)
Set the visible multiview form selected boolean- Parameters:
bIsVisibleMultiviewFormSelected-
-
isFiltrableMultiviewGlobal
public boolean isFiltrableMultiviewGlobal()
Return true if the response list page is filtrable globally by this question, false otherwise- Returns:
- true if the response list page is filtrable by this question, false otherwise
-
setFiltrableMultiviewGlobal
public void setFiltrableMultiviewGlobal(boolean bIsFiltrableMultiviewGlobal)
Set the multiview filtrable boolean- Parameters:
bIsFiltrableMultiviewGlobal- the multiview global filtrable boolean
-
isFiltrableMultiviewFormSelected
public boolean isFiltrableMultiviewFormSelected()
Return true if the response list page is filtrable when form is selected by this question, false otherwise- Returns:
- true if the response list page is filtrable by this question, false otherwise
-
setFiltrableMultiviewFormSelected
public void setFiltrableMultiviewFormSelected(boolean bIsFiltrableMultiviewFormSelected)
Set the multiview filtrable boolean- Parameters:
bIsFiltrableMultiviewFormSelected- the multiview FormSelected filtrable boolean
-
getMultiviewColumnOrder
public int getMultiviewColumnOrder()
- Returns:
- the nMultiviewColumnOrder
-
setMultiviewColumnOrder
public void setMultiviewColumnOrder(int nMultiviewColumnOrder)
- Parameters:
nMultiviewColumnOrder- the nMultiviewColumnOrder to set
-
getExportDisplayOrder
public int getExportDisplayOrder()
-
setExportDisplayOrder
public void setExportDisplayOrder(int nExportDisplayOrder)
-
-