public interface Settings
This interface allows to store and read properties in the Omix settings file.
- Since:
- Omix 1.3.11
- Author:
- Dr. Peter Droste, Omix Visualization
-
Method Summary
Modifier and Type Method Description boolean
contains(String identifier)
Determines if the key (identifier) exists in the settings file.boolean
contains(String group, String identifier)
Determines if the key (group\identifier) exists in the settings file.void
removeValue(String identifier)
Removes the key (identifier) value pair from the settings filevoid
removeValue(String group, String identifier)
Removes the key (group\identifier) value pair from the settings filevoid
setValue(String identifier, Object value)
save the value with the key group\identifier.void
setValue(String group, String identifier, Object value)
save the value with the key group\identifier.Object
value(String identifier)
The same as value(null, identifier)Object
value(String identifier, Object defaultValue)
Read the value at key group\identifier.Object
value(String group, String identifier)
The same as value(group, identifier, null)Object
value(String group, String identifier, Object defaultValue)
Read the value at key group\identifier.
-
Method Details
-
setValue
save the value with the key group\identifier. Equivalent to setValue(null, identifier, value).- Parameters:
identifier
-value
-- See Also:
setValue(String, String, Object)
-
setValue
save the value with the key group\identifier.- Parameters:
group
-identifier
-value
-
-
value
The same as value(null, identifier)- Parameters:
identifier
-- Returns:
- value
-
value
Read the value at key group\identifier. The same as value(null, identifier, defaultValue)- Parameters:
identifier
-defaultValue
-- Returns:
- if exists: the value or 'defaultValue' otherwise
-
value
The same as value(group, identifier, null)- Parameters:
group
-identifier
-- Returns:
- value
-
value
Read the value at key group\identifier.- Parameters:
group
-identifier
-defaultValue
-- Returns:
- if exists: the value or 'defaultValue' otherwise
-
removeValue
Removes the key (identifier) value pair from the settings file- Parameters:
identifier
-
-
removeValue
Removes the key (group\identifier) value pair from the settings file- Parameters:
group
-identifier
-
-
contains
Determines if the key (identifier) exists in the settings file.- Parameters:
identifier
-- Returns:
- true if 'identifier' exists
-
contains
Determines if the key (group\identifier) exists in the settings file.- Parameters:
group
-identifier
-- Returns:
- true if 'group\identifier' exists
-