fr.paris.lutece.util
Class ReferenceItem

java.lang.Object
  extended by fr.paris.lutece.util.ReferenceItem

public class ReferenceItem
extends java.lang.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
ReferenceItem()
           
 
Method Summary
 java.lang.String getCode()
          Returns the code of this ReferenceItem object as a String
 java.lang.String getName()
          Returns the name of this ReferenceItem object as a String
 boolean isChecked()
          Returns weither the item is checked or not
 void setChecked(boolean bChecked)
          Sets checked
 void setCode(java.lang.String strCode)
          Sets the code of this ReferenceItem with the String specified in parameter
 void setName(java.lang.String strName)
          Sets the name of this ReferenceItem object with the value specified in parameter
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceItem

public ReferenceItem()
Method Detail

getCode

public java.lang.String getCode()
Returns the code of this ReferenceItem object as a String

Returns:
The code

setCode

public void setCode(java.lang.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 java.lang.String getName()
Returns the name of this ReferenceItem object as a String

Returns:
the name

setName

public void setName(java.lang.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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2010 Mairie de Paris. All Rights Reserved.