Class EnumConfigDescriptionEntry


  • public class EnumConfigDescriptionEntry
    extends ConfigDescriptionEntry
    The enumeration config description entry represents an configuration key, where users may select a valid value from a predefined list of elements. Such an key will not allow free-form text.
    Author:
    Thomas Morgner
    • Constructor Detail

      • EnumConfigDescriptionEntry

        public EnumConfigDescriptionEntry​(String keyName)
        Creates a new enumeration description entry for the given configuration key.
        Parameters:
        keyName - the keyname of this entry.
    • Method Detail

      • getOptions

        public String[] getOptions()
        Returns all options from this entry as array.
        Returns:
        the options as array.
      • setOptions

        public void setOptions​(String[] options)
        Defines all options for this entry.
        Parameters:
        options - the selectable values for this entry.
      • equals

        public boolean equals​(Object o)
        Description copied from class: ConfigDescriptionEntry
        Checks whether the given object is equal to this config description entry. The object will be equal, if it is also an config description entry with the same name as this entry.
        Overrides:
        equals in class ConfigDescriptionEntry
        Parameters:
        o - the other object.
        Returns:
        true, if the config entry is equal to the given object, false otherwise.
        See Also:
        Object.equals(Object)