tot.xml
类 BaseConfiguration

java.lang.Object
  继承者 tot.xml.AbstractConfiguration
      继承者 tot.xml.BaseConfiguration
所有已实现的接口:
Configuration
直接已知子类:
BasePathConfiguration

public class BaseConfiguration
extends AbstractConfiguration

Basic configuration classe. Stores the configuration data but does not provide any load or save functions. If you want to load your Configuration from a file use PropertiesConfiguration or XmlConfiguration. This class extends normal Java properties by adding the possibility to use the same key many times concatenating the value strings instead of overwriting them.


字段摘要
 
从类 tot.xml.AbstractConfiguration 继承的字段
defaults, END_TOKEN, START_TOKEN
 
构造函数摘要
BaseConfiguration()
          Empty constructor.
BaseConfiguration(Configuration defaults)
          Creates an empty BaseConfiguration object with a Super-Object which is queries for every key.
 
方法摘要
protected  void addPropertyDirect(java.lang.String key, java.lang.Object obj)
          Adds a key/value pair to the map.
 void clearProperty(java.lang.String key)
          Clear a property in the configuration.
 boolean containsKey(java.lang.String key)
          check if the configuration contains the key
 java.util.Iterator getKeys()
          Get the list of the keys contained in the configuration repository.
protected  java.lang.Object getPropertyDirect(java.lang.String key)
          Read property from underlying map.
 boolean isEmpty()
          Check if the configuration is empty
 
从类 tot.xml.AbstractConfiguration 继承的方法
addProperty, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getVector, getVector, interpolate, interpolateHelper, processString, setProperty, subset, testBoolean
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造函数详细信息

BaseConfiguration

public BaseConfiguration()
Empty constructor. You must add all the values to this configuration.


BaseConfiguration

public BaseConfiguration(Configuration defaults)
Creates an empty BaseConfiguration object with a Super-Object which is queries for every key.

参数:
defaults - Configuration defaults to use if key not in file
方法详细信息

addPropertyDirect

protected void addPropertyDirect(java.lang.String key,
                                 java.lang.Object obj)
Adds a key/value pair to the map. This routine does no magic morphing. It ensures the keylist is maintained

指定者:
AbstractConfiguration 中的 addPropertyDirect
参数:
key - key to use for mapping
obj - object to store

getPropertyDirect

protected java.lang.Object getPropertyDirect(java.lang.String key)
Read property from underlying map.

指定者:
AbstractConfiguration 中的 getPropertyDirect
参数:
key - key to use for mapping
返回:
object associated with the given configuration key.

isEmpty

public boolean isEmpty()
Check if the configuration is empty

指定者:
接口 Configuration 中的 isEmpty
指定者:
AbstractConfiguration 中的 isEmpty
返回:
true if Configuration is empty, false otherwise.

containsKey

public boolean containsKey(java.lang.String key)
check if the configuration contains the key

指定者:
接口 Configuration 中的 containsKey
指定者:
AbstractConfiguration 中的 containsKey
参数:
key - the configuration key
返回:
true if Configuration contain given key, false otherwise.

clearProperty

public void clearProperty(java.lang.String key)
Clear a property in the configuration.

指定者:
接口 Configuration 中的 clearProperty
指定者:
AbstractConfiguration 中的 clearProperty
参数:
key - the key to remove along with corresponding value.

getKeys

public java.util.Iterator getKeys()
Get the list of the keys contained in the configuration repository.

指定者:
接口 Configuration 中的 getKeys
指定者:
AbstractConfiguration 中的 getKeys
返回:
An Iterator.