org.xnap.commons.settings
Class StringArraySetting

java.lang.Object
  extended by org.xnap.commons.settings.AbstractSetting<String[]>
      extended by org.xnap.commons.settings.StringArraySetting
All Implemented Interfaces:
Setting<String[]>

public class StringArraySetting
extends AbstractSetting<String[]>

Provides a setting for arrays of String objects.


Field Summary
 
Fields inherited from class org.xnap.commons.settings.AbstractSetting
ARRAY_SEPARATOR, backstore
 
Constructor Summary
StringArraySetting(SettingResource backend, String key, String[] defaultValue)
           
StringArraySetting(SettingResource backend, String key, String[] defaultValue, Validator validator)
           
 
Method Summary
protected  String[] fromString(String value)
          Sets the value of the setting from s.
protected  String toString(String[] value)
          Returns a string representation of the setting.
 
Methods inherited from class org.xnap.commons.settings.AbstractSetting
addPropertyChangeListener, areObjectsEqual, areObjectsEqual, getDefaultValue, getKey, getProperties, getValidator, getValue, removePropertyChangeListener, revert, setDefaultValue, setProperties, setValidator, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringArraySetting

public StringArraySetting(SettingResource backend,
                          String key,
                          String[] defaultValue,
                          Validator validator)

StringArraySetting

public StringArraySetting(SettingResource backend,
                          String key,
                          String[] defaultValue)
Method Detail

fromString

protected String[] fromString(String value)
Description copied from class: AbstractSetting
Sets the value of the setting from s.

Specified by:
fromString in class AbstractSetting<String[]>

toString

protected String toString(String[] value)
Description copied from class: AbstractSetting
Returns a string representation of the setting. The string is written to the settings file.

Specified by:
toString in class AbstractSetting<String[]>
See Also:
AbstractSetting.fromString(String)


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.