com.alee.managers.settings
Class SettingsGroup

java.lang.Object
  extended by com.alee.managers.settings.SettingsGroup
All Implemented Interfaces:
java.io.Serializable

@XStreamConverter(value=SettingsConverter.class)
public class SettingsGroup
extends java.lang.Object
implements java.io.Serializable

Settings group data class.

Author:
Mikle Garin
See Also:
How to use SettingsManager, SettingsManager, Serialized Form

Constructor Summary
SettingsGroup()
          Constructs unnamed SettingsGroup.
SettingsGroup(java.lang.String name)
          Constructs SettingsGroup with the specified name.
SettingsGroup(java.lang.String id, java.lang.String name)
          Constructs SettingsGroup with the specified name.
 
Method Summary
 java.lang.Object get(java.lang.String key)
          Returns value for specified key.
 java.lang.String getId()
          Returns SettingsGroup unique ID.
 java.lang.String getName()
          Returns unique name.
 java.util.Map<java.lang.String,java.lang.Object> getSettings()
          Returns settings map.
<T> T
put(java.lang.String key, T object)
          Puts value under the specified key.
 void setId(java.lang.String id)
          Sets unique ID.
 void setName(java.lang.String name)
          Sets unique name.
 void setSettings(java.util.Map<java.lang.String,java.lang.Object> settings)
          Sets settings map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingsGroup

public SettingsGroup()
Constructs unnamed SettingsGroup.


SettingsGroup

public SettingsGroup(java.lang.String name)
Constructs SettingsGroup with the specified name.

Parameters:
name - SettingsGroup name

SettingsGroup

public SettingsGroup(java.lang.String id,
                     java.lang.String name)
Constructs SettingsGroup with the specified name.

Parameters:
id - SettingsGroup ID
name - SettingsGroup name
Method Detail

getId

public java.lang.String getId()
Returns SettingsGroup unique ID.

Returns:
SettingsGroup unique ID

setId

public void setId(java.lang.String id)
Sets unique ID.

Parameters:
id - new unique ID

getName

public java.lang.String getName()
Returns unique name.

Returns:
unique name

setName

public void setName(java.lang.String name)
Sets unique name.

Parameters:
name - new unique name

getSettings

public java.util.Map<java.lang.String,java.lang.Object> getSettings()
Returns settings map.

Returns:
settings map

setSettings

public void setSettings(java.util.Map<java.lang.String,java.lang.Object> settings)
Sets settings map.

Parameters:
settings - new settings map

get

public java.lang.Object get(java.lang.String key)
Returns value for specified key.

Parameters:
key - key
Returns:
value for specified key

put

public <T> T put(java.lang.String key,
                 T object)
Puts value under the specified key.

Type Parameters:
T - value type
Parameters:
key - key
object - value
Returns:
previous value for the specified key