Class GenericPreference

java.lang.Object
org.openwms.core.preferences.impl.file.AbstractPreference
org.openwms.core.preferences.impl.file.GenericPreference
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplicationPreference, ModulePreference, RolePreference, UserPreference

public abstract class GenericPreference extends AbstractPreference implements Serializable
An GenericPreference is a superclass for all other preference classes within the application. It encapsulates some common behavior of preference types.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • value

      protected String value
      The String value of the AbstractPreference.
    • type

      protected String type
      A data type of the value.
    • description

      protected String description
      Description text of the GenericPreference.
    • minimum

      protected String minimum
      Minimum value.
    • maximum

      protected String maximum
      Maximum value.
    • fromFile

      private static final boolean fromFile
      Flag to remember if the preference was originally imported from a file.
      See Also:
  • Constructor Details

    • GenericPreference

      public GenericPreference()
  • Method Details

    • getValue

      public String getValue()
      Return the value of the GenericPreference.
      Returns:
      The value of the GenericPreference
    • setValue

      public void setValue(String value)
      Set the value of the GenericPreference.
      Parameters:
      value - The value to set
    • getType

      public String getType()
      Get the property value type.
      Returns:
      Type as String
    • setType

      public void setType(String type)
    • getDescription

      public String getDescription()
      Return the description of the GenericPreference.
      Returns:
      The description as String
    • setDescription

      public void setDescription(String description)
      Set a description for the GenericPreference.
      Parameters:
      description - The description to set
    • getMinimum

      public String getMinimum()
      Return the possible minimum value of the GenericPreference.
      Returns:
      The possible minimum value
    • setMinimum

      public void setMinimum(String minimum)
    • getMaximum

      public String getMaximum()
      Return the possible maximum value of the GenericPreference.
      Returns:
      The possible maximum value
    • setMaximum

      public void setMaximum(String maximum)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object