Package fr.paris.lutece.util
Class ReferenceItem
java.lang.Object
fr.paris.lutece.util.ReferenceItem
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Returns the code of this ReferenceItem object as a StringgetName()Returns the name of this ReferenceItem object as a StringbooleanReturns weither the item is checked or notvoidsetChecked(boolean bChecked) Sets checkedvoidSets the code of this ReferenceItem with the String specified in parametervoidSets the name of this ReferenceItem object with the value specified in parametertoString()
-
Constructor Details
-
ReferenceItem
public ReferenceItem()
-
-
Method Details
-
getCode
Returns the code of this ReferenceItem object as a String- Returns:
- The code
-
setCode
Sets the code of this ReferenceItem with the String specified in parameter- Parameters:
strCode- The new String value of the code
-
getName
Returns the name of this ReferenceItem object as a String- Returns:
- the name
-
setName
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
-
toString
-