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
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 Summary
Modifier and TypeFieldDescriptionprotected String
Description text of theGenericPreference
.private static final boolean
Flag to remember if the preference was originally imported from a file.protected String
Maximum value.protected String
Minimum value.protected String
A data type of the value.protected String
The String value of theAbstractPreference
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return thedescription
of theGenericPreference
.Return the possible maximum value of theGenericPreference
.Return the possible minimum value of theGenericPreference
.getType()
Get the property value type.getValue()
Return thevalue
of theGenericPreference
.int
hashCode()
void
setDescription
(String description) Set adescription
for theGenericPreference
.void
setMaximum
(String maximum) void
setMinimum
(String minimum) void
void
Set thevalue
of theGenericPreference
.toString()
Methods inherited from class org.openwms.core.preferences.impl.file.AbstractPreference
getFields, getPrefKey
-
Field Details
-
value
The String value of theAbstractPreference
. -
type
A data type of the value. -
description
Description text of theGenericPreference
. -
minimum
Minimum value. -
maximum
Maximum value. -
fromFile
private static final boolean fromFileFlag to remember if the preference was originally imported from a file.- See Also:
-
-
Constructor Details
-
GenericPreference
public GenericPreference()
-
-
Method Details
-
getValue
Return thevalue
of theGenericPreference
.- Returns:
- The value of the
GenericPreference
-
setValue
Set thevalue
of theGenericPreference
.- Parameters:
value
- The value to set
-
getType
Get the property value type.- Returns:
- Type as String
-
setType
-
getDescription
Return thedescription
of theGenericPreference
.- Returns:
- The description as String
-
setDescription
Set adescription
for theGenericPreference
.- Parameters:
description
- The description to set
-
getMinimum
Return the possible minimum value of theGenericPreference
.- Returns:
- The possible minimum value
-
setMinimum
-
getMaximum
Return the possible maximum value of theGenericPreference
.- Returns:
- The possible maximum value
-
setMaximum
-
toString
-
equals
-
hashCode
public int hashCode()
-