org.exoplatform.commons.api.settings
Class SettingValue<T>

java.lang.Object
  extended by org.exoplatform.commons.api.settings.SettingValue<T>
All Implemented Interfaces:
Serializable

public class SettingValue<T>
extends Object
implements Serializable

All possible value type stored in JCR

Author:
Alain Defrance
See Also:
Serialized Form

Constructor Summary
SettingValue(T value)
          Create a setting value object with a specify value type
 
Method Summary
static SettingValue<Boolean> create(Boolean value)
          create setting value object of type Boolean
static SettingValue<Double> create(Double value)
          create setting value object of type Double
static SettingValue<Long> create(Long value)
          create setting value object of type Long
static SettingValue<String> create(String value)
          create setting value object of type String
 T getValue()
          Get value object of setting value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingValue

public SettingValue(T value)
Create a setting value object with a specify value type

Parameters:
value -
Method Detail

getValue

public T getValue()
Get value object of setting value

Returns:
value in specified type

create

public static SettingValue<String> create(String value)
create setting value object of type String

Parameters:
value - String value of setting property will be created
Returns:
created SettingValue object of type String

create

public static SettingValue<Long> create(Long value)
create setting value object of type Long

Parameters:
value - Long value of setting property will be created
Returns:
created SettingValue object of type Long

create

public static SettingValue<Double> create(Double value)
create setting value object of type Double

Parameters:
value - Double value of setting property will be created
Returns:
created SettingValue object of type Double

create

public static SettingValue<Boolean> create(Boolean value)
create setting value object of type Boolean

Parameters:
value - Boolean value of setting property will be created
Returns:
created SettingValue object of type Boolean


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.