Class EnumConfigDescriptionEntry
- java.lang.Object
-
- org.pentaho.reporting.tools.configeditor.model.ConfigDescriptionEntry
-
- org.pentaho.reporting.tools.configeditor.model.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 Summary
Constructors Constructor Description EnumConfigDescriptionEntry(String keyName)
Creates a new enumeration description entry for the given configuration key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Checks whether the given object is equal to this config description entry.String[]
getOptions()
Returns all options from this entry as array.int
hashCode()
Computes an hashcode for this object.void
setOptions(String[] options)
Defines all options for this entry.-
Methods inherited from class org.pentaho.reporting.tools.configeditor.model.ConfigDescriptionEntry
getDescription, getKeyName, isGlobal, isHidden, setDescription, setGlobal, setHidden
-
-
-
-
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 classConfigDescriptionEntry
- Parameters:
o
- the other object.- Returns:
- true, if the config entry is equal to the given object, false otherwise.
- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
Description copied from class:ConfigDescriptionEntry
Computes an hashcode for this object.- Overrides:
hashCode
in classConfigDescriptionEntry
- Returns:
- the hashcode.
- See Also:
Object.hashCode()
-
-