| |
|
| org.apache.commons.configuration.HierarchicalConfiguration org.apache.commons.configuration.AbstractHierarchicalFileConfiguration org.apache.commons.configuration.plist.XMLPropertyListConfiguration
XMLPropertyListConfiguration | public class XMLPropertyListConfiguration extends AbstractHierarchicalFileConfiguration (Code) | | Mac OS X configuration file (http://www.apple.com/DTDs/PropertyList-1.0.dtd).
Example:
<?xml version="1.0"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="1.0">
<dict>
<key>string</key>
<string>value1</string>
<key>integer</key>
<integer>12345</integer>
<key>real</key>
<real>-123.45E-1</real>
<key>boolean</key>
<true/>
<key>date</key>
<date>2005-01-01T12:00:00-0700</date>
<key>data</key>
<data>RHJhY28gRG9ybWllbnMgTnVucXVhbSBUaXRpbGxhbmR1cw==</data>
<key>array</key>
<array>
<string>value1</string>
<string>value2</string>
<string>value3</string>
</array>
<key>dictionnary</key>
<dict>
<key>key1</key>
<string>value1</string>
<key>key2</key>
<string>value2</string>
<key>key3</key>
<string>value3</string>
</dict>
<key>nested</key>
<dict>
<key>node1</key>
<dict>
<key>node2</key>
<dict>
<key>node3</key>
<string>value</string>
</dict>
</dict>
</dict>
</dict>
</plist>
since: 1.2 author: Emmanuel Bourg version: $Revision: 492216 $, $Date: 2007-01-03 17:51:24 +0100 (Mi, 03 Jan 2007) $ |
Inner Class :public static class PListNode extends Node | |
Inner Class :public static class ArrayNode extends PListNode | |
XMLPropertyListConfiguration | public XMLPropertyListConfiguration()(Code) | | Creates an empty XMLPropertyListConfiguration object which can be
used to synthesize a new plist file by adding values and
then saving().
|
XMLPropertyListConfiguration | public XMLPropertyListConfiguration(HierarchicalConfiguration c)(Code) | | Creates a new instance of XMLPropertyListConfiguration and
copies the content of the specified configuration into this object.
Parameters: c - the configuration to copy since: 1.4 |
XMLPropertyListConfiguration | public XMLPropertyListConfiguration(File file) throws ConfigurationException(Code) | | Creates and loads the property list from the specified file.
Parameters: file - The plist file to load. throws: ConfigurationException - Error while loading the plist file |
XMLPropertyListConfiguration | public XMLPropertyListConfiguration(URL url) throws ConfigurationException(Code) | | Creates and loads the property list from the specified URL.
Parameters: url - The location of the plist file to load. throws: ConfigurationException - Error while loading the plist file |
Fields inherited from org.apache.commons.configuration.HierarchicalConfiguration | final public static int EVENT_ADD_NODES(Code)(Java Doc) final public static int EVENT_CLEAR_TREE(Code)(Java Doc)
|
|
|
|