Class 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

      Constructors 
      Constructor Description
      ReferenceItem()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        equals, 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