Class SettingValueBean

java.lang.Object
net.solarnetwork.node.settings.SettingValueBean
All Implemented Interfaces:
SettingsUpdates.Change

public class SettingValueBean extends Object implements SettingsUpdates.Change
An individual setting value.
Version:
1.3
Author:
matt
  • Constructor Details

    • SettingValueBean

      public SettingValueBean()
      Constructor.
    • SettingValueBean

      public SettingValueBean(String key, String value)
      Constructor.
      Parameters:
      key - the key
      value - the value
      Since:
      1.2
    • SettingValueBean

      public SettingValueBean(String providerKey, String instanceKey, String key, String value)
      Constructor.
      Parameters:
      providerKey - the provider key
      instanceKey - the instance key
      key - the key
      value - the value
      Since:
      1.3
    • SettingValueBean

      public SettingValueBean(String key, boolean remove)
      Constructor.
      Parameters:
      key - the key
      remove - the remove flag
      Since:
      1.2
  • Method Details

    • toString

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

      public boolean isRemove()
      Get the remove flag.
      Specified by:
      isRemove in interface SettingsUpdates.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.Change
      Get the transient flag.
      Specified by:
      isTransient in interface SettingsUpdates.Change
      Returns:
      the transient flag
    • setTransient

      public void setTransient(boolean value)
      Set the transient flag.
      Parameters:
      value - the value to set
    • getProviderKey

      public String getProviderKey()
      Description copied from interface: SettingsUpdates.Change
      Get the setting provider ID this change is for.
      Specified by:
      getProviderKey in interface SettingsUpdates.Change
      Returns:
      the setting provider key
    • setProviderKey

      public void setProviderKey(String providerKey)
      Set the provider key.
      Parameters:
      providerKey - the key to set
    • getKey

      public String getKey()
      Description copied from interface: SettingsUpdates.Change
      Get the setting key.
      Specified by:
      getKey in interface SettingsUpdates.Change
      Returns:
      the key
    • setKey

      public void setKey(String key)
      Set the key.
      Parameters:
      key - the key to set
    • getValue

      public String getValue()
      Description copied from interface: SettingsUpdates.Change
      Get the setting value.
      Specified by:
      getValue in interface SettingsUpdates.Change
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Set the value.
      Parameters:
      value - the value to set
    • getInstanceKey

      public String getInstanceKey()
      Description copied from interface: SettingsUpdates.Change
      Get the setting instance ID of the setting provider factory this is for, or null if the provider is not a factory
      Specified by:
      getInstanceKey in interface SettingsUpdates.Change
      Returns:
      the setting instance key, or null
    • setInstanceKey

      public void setInstanceKey(String instanceKey)
      Set the instance key.
      Parameters:
      instanceKey - the key to set