Package fr.paris.lutece.util
Class ReferenceItem
- java.lang.Object
-
- fr.paris.lutece.util.ReferenceItem
-
public class ReferenceItem extends Object
This class is the representation of a ReferenceItem composed of a code and a name. It also provides the methods to access to those attributes.
-
-
Constructor Summary
Constructors Constructor Description ReferenceItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()Returns the code of this ReferenceItem object as a StringStringgetName()Returns the name of this ReferenceItem object as a StringbooleanisChecked()Returns weither the item is checked or notvoidsetChecked(boolean bChecked)Sets checkedvoidsetCode(String strCode)Sets the code of this ReferenceItem with the String specified in parametervoidsetName(String strName)Sets the name of this ReferenceItem object with the value specified in parameterStringtoString()
-
-
-
Method Detail
-
getCode
public String getCode()
Returns the code of this ReferenceItem object as a String- Returns:
- The code
-
setCode
public void setCode(String strCode)
Sets the code of this ReferenceItem with the String specified in parameter- Parameters:
strCode- The new String value of the code
-
getName
public String getName()
Returns the name of this ReferenceItem object as a String- Returns:
- the name
-
setName
public void setName(String strName)
Sets the name of this ReferenceItem object with the value specified in parameter- Parameters:
strName- new String value of the name
-
isChecked
public boolean isChecked()
Returns weither the item is checked or not- Returns:
- true if checked, otherwise false
- Since:
- 2.0
-
setChecked
public void setChecked(boolean bChecked)
Sets checked- Parameters:
bChecked- The check status- Since:
- 2.0
-
-