ccc.domain
Class Setting

java.lang.Object
  extended by ccc.domain.Entity
      extended by ccc.domain.Setting
All Implemented Interfaces:
Jsonable, java.io.Serializable

public class Setting
extends Entity

A setting, represented as a key:value pair.

Author:
Civic Computing Ltd
See Also:
Serialized Form

Nested Class Summary
static class Setting.Name
          Valid setting names.
 
Constructor Summary
protected Setting()
          Constructor: for persistence only.
  Setting(Setting.Name name, java.lang.String value)
          Constructor.
 
Method Summary
 Setting.Name getName()
          Accessor for name.
 java.lang.String getValue()
          Accessor for value.
 void setValue(java.lang.String value)
          The value as a string.
 
Methods inherited from class ccc.domain.Entity
equals, getId, getVersion, hashCode, setId, toJson, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Setting

protected Setting()
Constructor: for persistence only.


Setting

public Setting(Setting.Name name,
               java.lang.String value)
Constructor.

Parameters:
name - The name of this setting.
value - The value of this setting.
Method Detail

getName

public final Setting.Name getName()
Accessor for name.

Returns:
The name, as a string.

getValue

public final java.lang.String getValue()
Accessor for value.

Returns:
The value, as a string.

setValue

public final void setValue(java.lang.String value)
The value as a string.

Parameters:
value - The new value for this setting.


Copyright © 2010. All Rights Reserved.