Class ReferenceItem

java.lang.Object
fr.paris.lutece.util.ReferenceItem
All Implemented Interfaces:
Serializable

public class ReferenceItem extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the code of this ReferenceItem object as a String
    Returns the name of this ReferenceItem object as a String
    boolean
    Returns weither the item is checked or not
    void
    setChecked(boolean bChecked)
    Sets checked
    void
    setCode(String strCode)
    Sets the code of this ReferenceItem with the String specified in parameter
    void
    setName(String strName)
    Sets the name of this ReferenceItem object with the value specified in parameter

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ReferenceItem

      public ReferenceItem()
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object