Class ValueSetValue


  • public class ValueSetValue
    extends Object
    Representation of a valueset value.
    Author:
    Martin Lindström (martin@idsec.se), Henrik Bengtsson (extern.henrik.bengtsson@digg.se), Henric Norlander (extern.henric.norlander@digg.se)
    • Constructor Detail

      • ValueSetValue

        public ValueSetValue()
        Default constructor.
      • ValueSetValue

        public ValueSetValue​(String display,
                             String lang,
                             boolean active,
                             String version,
                             String system)
        All-args constructor.
        Parameters:
        display - the display name of the value
        lang - the language code
        active - whether this value is "active"
        version - the version of the value
        system - the system
    • Method Detail

      • getDisplay

        public String getDisplay()
        Gets the display name of the value.
        Returns:
        the display name
      • setDisplay

        public void setDisplay​(String display)
        Sets the display name of the value.
        Parameters:
        display - the display name
      • getLang

        public String getLang()
        Gets the language code.
        Returns:
        the language code
      • setLang

        public void setLang​(String lang)
        Sets the language code
        Parameters:
        lang - the language code
      • isActive

        public boolean isActive()
        Tells whether this value is active.
        Returns:
        whether this value is active
      • setActive

        public void setActive​(boolean active)
        Assigns whether this value is active
        Parameters:
        active - active/not active
      • getVersion

        public String getVersion()
        Gets the version of the value.
        Returns:
        the version
      • setVersion

        public void setVersion​(String version)
        Sets the version of the value.
        Parameters:
        version - the version
      • getSystem

        public String getSystem()
        Gets the system.
        Returns:
        the system
      • setSystem

        public void setSystem​(String system)
        Sets the system.
        Parameters:
        system - the system
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object