net.sourceforge.blogentis.plugins.impl
Class PrefsImpl

java.lang.Object
  extended byorg.apache.commons.configuration.AbstractConfiguration
      extended byorg.apache.commons.configuration.SubsetConfiguration
          extended bynet.sourceforge.blogentis.plugins.impl.PrefsImpl
All Implemented Interfaces:
org.apache.commons.configuration.Configuration, IPrefs

public class PrefsImpl
extends org.apache.commons.configuration.SubsetConfiguration
implements IPrefs

Author:
abas

Nested Class Summary
 
Nested classes inherited from class org.apache.commons.configuration.AbstractConfiguration
 
Field Summary
protected  Blog blog
           
protected  java.lang.String prefix
           
protected  java.util.Map store
           
 
Fields inherited from class org.apache.commons.configuration.SubsetConfiguration
delimiter, parent
 
Fields inherited from class org.apache.commons.configuration.AbstractConfiguration
END_TOKEN, START_TOKEN
 
Constructor Summary
PrefsImpl(Blog blog, java.lang.String prefix)
           
 
Method Summary
 java.lang.String getPrefix()
          The preferences are stored under a specific prefix, get it for us.
 void save()
           
 void setInt(java.lang.String key, int value)
           
 void setInt(java.lang.String key, java.lang.Integer value)
           
 void setList(java.lang.String key, java.util.List value)
           
 void setString(java.lang.String key, java.lang.String value)
          Set the specified key to the given value
 
Methods inherited from class org.apache.commons.configuration.SubsetConfiguration
addPropertyDirect, clearProperty, containsKey, getChildKey, getKeys, getKeys, getParent, getParentKey, getPropertyDirect, interpolate, isEmpty, isThrowExceptionOnMissing, setPrefix, setProperty, setThrowExceptionOnMissing, subset
 
Methods inherited from class org.apache.commons.configuration.AbstractConfiguration
addProperty, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getList, getList, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getVector, getVector, interpolateHelper, setDelimiter, split
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.configuration.Configuration
addProperty, clearProperty, containsKey, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getKeys, getList, getList, getLong, getLong, getLong, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getVector, getVector, isEmpty, setProperty, subset
 

Field Detail

store

protected java.util.Map store

prefix

protected java.lang.String prefix

blog

protected Blog blog
Constructor Detail

PrefsImpl

public PrefsImpl(Blog blog,
                 java.lang.String prefix)
Parameters:
prefix -
Method Detail

getPrefix

public java.lang.String getPrefix()
Description copied from interface: IPrefs
The preferences are stored under a specific prefix, get it for us.

Specified by:
getPrefix in interface IPrefs

setString

public void setString(java.lang.String key,
                      java.lang.String value)
Description copied from interface: IPrefs
Set the specified key to the given value

Specified by:
setString in interface IPrefs
Parameters:
key -
value -

save

public void save()
          throws java.lang.Exception
Specified by:
save in interface IPrefs
Throws:
java.lang.Exception

setInt

public void setInt(java.lang.String key,
                   int value)
Specified by:
setInt in interface IPrefs

setInt

public void setInt(java.lang.String key,
                   java.lang.Integer value)
Specified by:
setInt in interface IPrefs

setList

public void setList(java.lang.String key,
                    java.util.List value)
Specified by:
setList in interface IPrefs


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.