|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 | |||||||||
java.lang.Objecttot.xml.AbstractConfiguration
tot.xml.BaseConfiguration
public class BaseConfiguration
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 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造函数详细信息 |
|---|
public BaseConfiguration()
public BaseConfiguration(Configuration defaults)
defaults - Configuration defaults to use if key not in file| 方法详细信息 |
|---|
protected void addPropertyDirect(java.lang.String key,
java.lang.Object obj)
AbstractConfiguration 中的 addPropertyDirectkey - key to use for mappingobj - object to storeprotected java.lang.Object getPropertyDirect(java.lang.String key)
AbstractConfiguration 中的 getPropertyDirectkey - key to use for mapping
public boolean isEmpty()
Configuration 中的 isEmptyAbstractConfiguration 中的 isEmptytrue if Configuration is empty,
false otherwise.public boolean containsKey(java.lang.String key)
Configuration 中的 containsKeyAbstractConfiguration 中的 containsKeykey - the configuration key
true if Configuration contain given key,
false otherwise.public void clearProperty(java.lang.String key)
Configuration 中的 clearPropertyAbstractConfiguration 中的 clearPropertykey - the key to remove along with corresponding value.public java.util.Iterator getKeys()
Configuration 中的 getKeysAbstractConfiguration 中的 getKeys
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 | |||||||||