|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.jdon.util.jdom.XMLProperties
public class XMLProperties
Provides the the ability to use simple XML property files. Each property is in the form X.Y.Z, which would map to an XML snippet of:
<X>
<Y>
<Z>someValue</Z>
</Y>
</X>
The XML file is passed in to the constructor and must be readable and
writtable. Setting property values will automatically persist those value to
disk or outputStream.
| 构造方法摘要 | |
|---|---|
XMLProperties(InputStream inputStream)
Creates a new XMLProperties object. |
|
XMLProperties(String fileName)
Creates a new XMLProperties object. |
|
| 方法摘要 | |
|---|---|
void |
deleteProperty(String name)
Deletes the specified property. |
String[] |
getChildrenProperties(String parent)
Return all children property names of a parent property as a String array, or an empty array if the if there are no children. |
String[] |
getChildrenPropertiesValues(String parent)
|
String |
getProperty(String name)
Returns the value of the specified property. |
void |
setProperty(String name,
String value)
Sets the value of the specified property. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public XMLProperties(String fileName)
public XMLProperties(InputStream inputStream)
| 方法详细信息 |
|---|
public String getProperty(String name)
name - the name of the property to get.
public String[] getChildrenProperties(String parent)
parent - the name of the parent property.
public String[] getChildrenPropertiesValues(String parent)
public void setProperty(String name,
String value)
name - the name of the property to set.value - the new value for the property.public void deleteProperty(String name)
name - the property to delete.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||