Package net.solarnetwork.node.settings
Class SettingValueBean
java.lang.Object
net.solarnetwork.node.settings.SettingValueBean
- All Implemented Interfaces:
SettingsUpdates.Change
An individual setting value.
- Version:
- 1.3
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.SettingValueBean(String key, boolean remove) Constructor.SettingValueBean(String key, String value) Constructor.SettingValueBean(String providerKey, String instanceKey, String key, String value) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the setting instance ID of the setting provider factory this is for, or null if the provider is not a factorygetKey()Get the setting key.Get the setting provider ID this change is for.getValue()Get the setting value.booleanisRemove()Get the remove flag.booleanGet the transient flag.voidsetInstanceKey(String instanceKey) Set the instance key.voidSet the key.voidsetProviderKey(String providerKey) Set the provider key.voidsetRemove(boolean remove) Set the remove flag.voidsetTransient(boolean value) Set the transient flag.voidSet the value.toString()
-
Constructor Details
-
SettingValueBean
public SettingValueBean()Constructor. -
SettingValueBean
Constructor.- Parameters:
key- the keyvalue- the value- Since:
- 1.2
-
SettingValueBean
Constructor.- Parameters:
providerKey- the provider keyinstanceKey- the instance keykey- the keyvalue- the value- Since:
- 1.3
-
SettingValueBean
Constructor.- Parameters:
key- the keyremove- the remove flag- Since:
- 1.2
-
-
Method Details
-
toString
-
isRemove
public boolean isRemove()Get the remove flag.- Specified by:
isRemovein interfaceSettingsUpdates.Change- Returns:
- true this setting should be deleted
- Since:
- 1.1
-
setRemove
public void setRemove(boolean remove) Set the remove flag.- Parameters:
remove- The flag to set.- Since:
- 1.1
-
isTransient
public boolean isTransient()Description copied from interface:SettingsUpdates.ChangeGet the transient flag.- Specified by:
isTransientin interfaceSettingsUpdates.Change- Returns:
- the transient flag
-
setTransient
public void setTransient(boolean value) Set the transient flag.- Parameters:
value- the value to set
-
getProviderKey
Description copied from interface:SettingsUpdates.ChangeGet the setting provider ID this change is for.- Specified by:
getProviderKeyin interfaceSettingsUpdates.Change- Returns:
- the setting provider key
-
setProviderKey
Set the provider key.- Parameters:
providerKey- the key to set
-
getKey
Description copied from interface:SettingsUpdates.ChangeGet the setting key.- Specified by:
getKeyin interfaceSettingsUpdates.Change- Returns:
- the key
-
setKey
Set the key.- Parameters:
key- the key to set
-
getValue
Description copied from interface:SettingsUpdates.ChangeGet the setting value.- Specified by:
getValuein interfaceSettingsUpdates.Change- Returns:
- the value
-
setValue
Set the value.- Parameters:
value- the value to set
-
getInstanceKey
Description copied from interface:SettingsUpdates.ChangeGet the setting instance ID of the setting provider factory this is for, or null if the provider is not a factory- Specified by:
getInstanceKeyin interfaceSettingsUpdates.Change- Returns:
- the setting instance key, or null
-
setInstanceKey
Set the instance key.- Parameters:
instanceKey- the key to set
-