fr.paris.lutece.plugins.genericattributes.business
Class Entry

java.lang.Object
  extended by fr.paris.lutece.plugins.genericattributes.business.Entry
All Implemented Interfaces:
Serializable, Cloneable

public class Entry
extends Object
implements Serializable, Cloneable

class Entry

See Also:
Serialized Form

Constructor Summary
Entry()
           
 
Method Summary
 Object clone()
          Creates and returns a copy of this object.
 List<Entry> getChildren()
          Get the list of children of this entry
 String getComment()
          Get the comment of this entry
 String getConfirmFieldTitle()
          Get the title of the confirmation field
 String getCSSClass()
          Get the CSS class of the generated fields
 EntryType getEntryType()
          Get the type of the entry
 GenericAttributeError getError()
          Get the error associated to the entry
 String getErrorMessage()
          Get the error message associated with this entry.
 Field getFieldDepend()
          Get the field depend of this entry
 List<Field> getFields()
          Get the list of fields of this entry
 String getHelpMessage()
          Get the help message of this entry
 int getIdEntry()
          Get the id of this entry
 int getIdResource()
          Get the id of the resource associated with this entry
 IMapProvider getMapProvider()
          Get the selected map provider
 int getNumberColumn()
           
 int getNumberConditionalQuestion()
          Get the number of conditional questions associated with the entry
 int getNumberRow()
           
 Entry getParent()
           
 int getPosition()
          Get the position of the entry
 String getResourceType()
          Get the type of the resource associated with this entry
 String getTitle()
          Get the title of this entry
 boolean isConfirmField()
          Check if this entry must be confirmed by a duplicated field
 boolean isFieldInLine()
          Check if generated fields must be displayed in line
 boolean isFirstInTheList()
          Check if the entry is the first entry of a group
 boolean isLastInTheList()
          Check if the entry is the last entry of a group
 boolean isMandatory()
          Check if this entry is mandatory or not
 boolean isUnique()
          Check if the value of the response must be unique
 void setChildren(List<Entry> children)
          Set the list of entry who are insert in the group
 void setComment(String strComment)
          Set entry comment
 void setConfirmField(boolean bConfirmField)
          Set true if the question must be confirmed by a duplicated field
 void setConfirmFieldTitle(String strConfirmFieldTitle)
          Set the title of the confirmation field
 void setCSSClass(String strCSSClass)
          Set the CSS class of the generated fields
 void setEntryType(EntryType entryType)
          Set the type of the entry
 void setError(GenericAttributeError error)
          Set the error associated to the entry
 void setErrorMessage(String strErrorMessage)
          Set the error message associated with this entry.
 void setFieldDepend(Field depend)
          Set the field if the entry is a conditional question
 void setFieldInLine(boolean bFieldInLine)
          Set true if the field associate must be display in line
 void setFields(List<Field> fields)
          Set the list of field who are associate to the entry
 void setFirstInTheList(boolean firstInTheList)
          Set true if the entry is the first entry of a group or the list of entry
 void setHelpMessage(String strHelpMessage)
          Set the entry help message
 void setIdEntry(int nIdEntry)
          Set the id of the entry
 void setIdResource(int nIdResource)
          Set the id of the resource associated with this entry
 void setLastInTheList(boolean lastInTheList)
          Set true if the entry is the last entry of a group or the list of entry
 void setMandatory(boolean bMandatory)
          Set true if the question is mandatory
 void setMapProvider(IMapProvider mapProvider)
          Sets the map provider
 void setNumberColumn(int nNumberColumn)
           
 void setNumberConditionalQuestion(int numberConditionalQuestion)
          Set the number of conditional questions who are associated with the entry
 void setNumberRow(int nNumberRow)
           
 void setParent(Entry parent)
          Set parent entry if the entry is insert in a group
 void setPosition(int position)
          Set position entry
 void setResourceType(String strResourceType)
          Set the type of the resource associated with this entry
 void setTitle(String strTitle)
          Set title entry
 void setUnique(boolean bUnique)
          Set to true if the value of the response to this question must be unique
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entry

public Entry()
Method Detail

getChildren

public List<Entry> getChildren()
Get the list of children of this entry

Returns:
the list of entry who are insert in the group

getComment

public String getComment()
Get the comment of this entry

Returns:
the entry comment

getEntryType

public EntryType getEntryType()
Get the type of the entry

Returns:
the type of the entry

getFields

public List<Field> getFields()
Get the list of fields of this entry

Returns:
the list of field who are associate to the entry

getHelpMessage

public String getHelpMessage()
Get the help message of this entry

Returns:
The help message of this entry

getIdEntry

public int getIdEntry()
Get the id of this entry

Returns:
the id of entry

getParent

public Entry getParent()
Returns:
parent entry if the entry is insert in a group

getPosition

public int getPosition()
Get the position of the entry

Returns:
position entry

getTitle

public String getTitle()
Get the title of this entry

Returns:
The title of this entry

isFieldInLine

public boolean isFieldInLine()
Check if generated fields must be displayed in line

Returns:
true if the field associate must be display in line

isMandatory

public boolean isMandatory()
Check if this entry is mandatory or not

Returns:
true if the question is mandatory

setChildren

public void setChildren(List<Entry> children)
Set the list of entry who are insert in the group

Parameters:
children - the list of entry

setComment

public void setComment(String strComment)
Set entry comment

Parameters:
strComment - entry comment

setEntryType

public void setEntryType(EntryType entryType)
Set the type of the entry

Parameters:
entryType - the type of the entry

setFieldInLine

public void setFieldInLine(boolean bFieldInLine)
Set true if the field associate must be display in line

Parameters:
bFieldInLine - true if the field associate must be display in line

setFields

public void setFields(List<Field> fields)
Set the list of field who are associate to the entry

Parameters:
fields - the list of field

setHelpMessage

public void setHelpMessage(String strHelpMessage)
Set the entry help message

Parameters:
strHelpMessage - the entry help message

setIdEntry

public void setIdEntry(int nIdEntry)
Set the id of the entry

Parameters:
nIdEntry - the id of the entry

setMandatory

public void setMandatory(boolean bMandatory)
Set true if the question is mandatory

Parameters:
bMandatory - true if the question is mandatory

setParent

public void setParent(Entry parent)
Set parent entry if the entry is insert in a group

Parameters:
parent - parent entry

setPosition

public void setPosition(int position)
Set position entry

Parameters:
position - position entry

setTitle

public void setTitle(String strTitle)
Set title entry

Parameters:
strTitle - title

getIdResource

public int getIdResource()
Get the id of the resource associated with this entry

Returns:
The id of the resource associated with this entry

setIdResource

public void setIdResource(int nIdResource)
Set the id of the resource associated with this entry

Parameters:
nIdResource - The id of the resource associated with this entry

getResourceType

public String getResourceType()
Get the type of the resource associated with this entry

Returns:
The type of the resource associated with this entry

setResourceType

public void setResourceType(String strResourceType)
Set the type of the resource associated with this entry

Parameters:
strResourceType - The type of the resource associated with this entry

getFieldDepend

public Field getFieldDepend()
Get the field depend of this entry

Returns:
the field if the entry is a conditional question

setFieldDepend

public void setFieldDepend(Field depend)
Set the field if the entry is a conditional question

Parameters:
depend - depend the field if the entry is a conditional question

getNumberConditionalQuestion

public int getNumberConditionalQuestion()
Get the number of conditional questions associated with the entry

Returns:
the number of conditional questions associated with the entry

setNumberConditionalQuestion

public void setNumberConditionalQuestion(int numberConditionalQuestion)
Set the number of conditional questions who are associated with the entry

Parameters:
numberConditionalQuestion - the number of conditional questions which are associated with the entry

isLastInTheList

public boolean isLastInTheList()
Check if the entry is the last entry of a group

Returns:
true if the entry is the last entry of a group or the list of entry

setLastInTheList

public void setLastInTheList(boolean lastInTheList)
Set true if the entry is the last entry of a group or the list of entry

Parameters:
lastInTheList - true if the entry is the last entry of a group or the list of entry

isFirstInTheList

public boolean isFirstInTheList()
Check if the entry is the first entry of a group

Returns:
true if the entry is the first entry of a group or the list of entry

setFirstInTheList

public void setFirstInTheList(boolean firstInTheList)
Set true if the entry is the first entry of a group or the list of entry

Parameters:
firstInTheList - true if the entry is the last entry of a group or the list of entry

setConfirmField

public void setConfirmField(boolean bConfirmField)
Set true if the question must be confirmed by a duplicated field

Parameters:
bConfirmField - mandatory true if the question must be confirmed by a duplicated field

isConfirmField

public boolean isConfirmField()
Check if this entry must be confirmed by a duplicated field

Returns:
true if the entry must be confirmed by a duplicated field

setConfirmFieldTitle

public void setConfirmFieldTitle(String strConfirmFieldTitle)
Set the title of the confirmation field

Parameters:
strConfirmFieldTitle - The title of the confirmation field

getConfirmFieldTitle

public String getConfirmFieldTitle()
Get the title of the confirmation field

Returns:
The title of the confirmation field

setUnique

public void setUnique(boolean bUnique)
Set to true if the value of the response to this question must be unique

Parameters:
bUnique - true if the value of the response to this question must be unique, false otherwise

isUnique

public boolean isUnique()
Check if the value of the response must be unique

Returns:
true if the value of the response to this question must be unique

getMapProvider

public IMapProvider getMapProvider()
Get the selected map provider

Returns:
the select map provider
See Also:
IMapProvider

setMapProvider

public void setMapProvider(IMapProvider mapProvider)
Sets the map provider

Parameters:
mapProvider - the map provider

getError

public GenericAttributeError getError()
Get the error associated to the entry

Returns:
the error

setError

public void setError(GenericAttributeError error)
Set the error associated to the entry

Parameters:
error - the error

setCSSClass

public void setCSSClass(String strCSSClass)
Set the CSS class of the generated fields

Parameters:
strCSSClass - The CSS class to set

getCSSClass

public String getCSSClass()
Get the CSS class of the generated fields

Returns:
The CSS class

getErrorMessage

public String getErrorMessage()
Get the error message associated with this entry. This error message should be used by the right entry type. For example, EntryTypeCheckBox use it as a message to indicates that this field is mandatory.

Returns:
The error message of this entry

setErrorMessage

public void setErrorMessage(String strErrorMessage)
Set the error message associated with this entry. This error message should be used by the right entry type. For example, EntryTypeCheckBox use it as a message to indicates that this field is mandatory.

Parameters:
strErrorMessage - The error message of this entry

getNumberRow

public int getNumberRow()
Returns:
the _nNumberRow

setNumberRow

public void setNumberRow(int nNumberRow)
Parameters:
nNumberRow - the _nNumberRow to set

getNumberColumn

public int getNumberColumn()
Returns:
the _nNumberColumn

setNumberColumn

public void setNumberColumn(int nNumberColumn)
Parameters:
nNumberColumn - the _nNumberColumn to set

clone

public Object clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
a clone of this instance.
See Also:
Object.clone()


Copyright © 2014 Mairie de Paris. All Rights Reserved.