Java Doc for XMLPropertyListConfiguration.java in  » Library » Apache-commons-configuration-1.4-src » org » apache » commons » configuration » plist » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache commons configuration 1.4 src » org.apache.commons.configuration.plist 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Constructor Summary
public  XMLPropertyListConfiguration()
     Creates an empty XMLPropertyListConfiguration object which can be used to synthesize a new plist file by adding values and then saving().
public  XMLPropertyListConfiguration(HierarchicalConfiguration c)
     Creates a new instance of XMLPropertyListConfiguration and copies the content of the specified configuration into this object.
public  XMLPropertyListConfiguration(String fileName)
     Creates and loads the property list from the specified file.
public  XMLPropertyListConfiguration(File file)
     Creates and loads the property list from the specified file.
public  XMLPropertyListConfiguration(URL url)
     Creates and loads the property list from the specified URL.

Method Summary
public  voidload(Reader in)
    
public  voidsave(Writer out)
    


Constructor Detail
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(String fileName) throws ConfigurationException(Code)
Creates and loads the property list from the specified file.
Parameters:
  fileName - The name of the plist file to load.
throws:
  org.apache.commons.configuration.ConfigurationException - Errorwhile loading the plist file



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




Method Detail
load
public void load(Reader in) throws ConfigurationException(Code)



save
public void save(Writer out) throws ConfigurationException(Code)



Methods inherited from org.apache.commons.configuration.AbstractHierarchicalFileConfiguration
protected void addPropertyDirect(String key, Object obj)(Code)(Java Doc)
public void clearProperty(String key)(Code)(Java Doc)
public void clearTree(String key)(Code)(Java Doc)
public void configurationChanged(ConfigurationEvent event)(Code)(Java Doc)
public boolean containsKey(String key)(Code)(Java Doc)
protected FileConfigurationDelegate createDelegate()(Code)(Java Doc)
protected List fetchNodeList(String key)(Code)(Java Doc)
public String getBasePath()(Code)(Java Doc)
protected FileConfigurationDelegate getDelegate()(Code)(Java Doc)
public String getEncoding()(Code)(Java Doc)
public File getFile()(Code)(Java Doc)
public String getFileName()(Code)(Java Doc)
public Iterator getKeys(String prefix)(Code)(Java Doc)
public Object getProperty(String key)(Code)(Java Doc)
public ReloadingStrategy getReloadingStrategy()(Code)(Java Doc)
public URL getURL()(Code)(Java Doc)
public boolean isAutoSave()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public void load() throws ConfigurationException(Code)(Java Doc)
public void load(String fileName) throws ConfigurationException(Code)(Java Doc)
public void load(File file) throws ConfigurationException(Code)(Java Doc)
public void load(URL url) throws ConfigurationException(Code)(Java Doc)
public void load(InputStream in) throws ConfigurationException(Code)(Java Doc)
public void load(InputStream in, String encoding) throws ConfigurationException(Code)(Java Doc)
public void reload()(Code)(Java Doc)
public void save() throws ConfigurationException(Code)(Java Doc)
public void save(String fileName) throws ConfigurationException(Code)(Java Doc)
public void save(File file) throws ConfigurationException(Code)(Java Doc)
public void save(URL url) throws ConfigurationException(Code)(Java Doc)
public void save(OutputStream out) throws ConfigurationException(Code)(Java Doc)
public void save(OutputStream out, String encoding) throws ConfigurationException(Code)(Java Doc)
public void setAutoSave(boolean autoSave)(Code)(Java Doc)
public void setBasePath(String basePath)(Code)(Java Doc)
protected void setDelegate(FileConfigurationDelegate delegate)(Code)(Java Doc)
public void setEncoding(String encoding)(Code)(Java Doc)
public void setFile(File file)(Code)(Java Doc)
public void setFileName(String fileName)(Code)(Java Doc)
public void setProperty(String key, Object value)(Code)(Java Doc)
public void setReloadingStrategy(ReloadingStrategy strategy)(Code)(Java Doc)
public void setURL(URL url)(Code)(Java Doc)

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)

Methods inherited from org.apache.commons.configuration.HierarchicalConfiguration
public void addNodes(String key, Collection nodes)(Code)(Java Doc)
protected void addPropertyDirect(String key, Object obj)(Code)(Java Doc)
protected void clearNode(Node node)(Code)(Java Doc)
protected void clearNode(ConfigurationNode node)(Code)(Java Doc)
public void clearProperty(String key)(Code)(Java Doc)
protected static void clearReferences(ConfigurationNode node)(Code)(Java Doc)
public void clearTree(String key)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public SubnodeConfiguration configurationAt(String key)(Code)(Java Doc)
public List configurationsAt(String key)(Code)(Java Doc)
public boolean containsKey(String key)(Code)(Java Doc)
protected Node createAddPath(ConfigurationKey.KeyIterator keyIt, Node root)(Code)(Java Doc)
protected Node createNode(String name)(Code)(Java Doc)
protected SubnodeConfiguration createSubnodeConfiguration(ConfigurationNode node)(Code)(Java Doc)
protected Node fetchAddNode(ConfigurationKey.KeyIterator keyIt, Node startNode)(Code)(Java Doc)
protected List fetchNodeList(String key)(Code)(Java Doc)
protected Node findLastPathNode(ConfigurationKey.KeyIterator keyIt, Node node)(Code)(Java Doc)
protected void findPropertyNodes(ConfigurationKey.KeyIterator keyPart, Node node, Collection nodes)(Code)(Java Doc)
public static ExpressionEngine getDefaultExpressionEngine()(Code)(Java Doc)
public ExpressionEngine getExpressionEngine()(Code)(Java Doc)
public Iterator getKeys()(Code)(Java Doc)
public Iterator getKeys(String prefix)(Code)(Java Doc)
public int getMaxIndex(String key)(Code)(Java Doc)
public Object getProperty(String key)(Code)(Java Doc)
public Node getRoot()(Code)(Java Doc)
public ConfigurationNode getRootNode()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
protected boolean nodeDefined(Node node)(Code)(Java Doc)
protected boolean nodeDefined(ConfigurationNode node)(Code)(Java Doc)
protected void removeNode(Node node)(Code)(Java Doc)
protected void removeNode(ConfigurationNode node)(Code)(Java Doc)
public static void setDefaultExpressionEngine(ExpressionEngine engine)(Code)(Java Doc)
public void setExpressionEngine(ExpressionEngine expressionEngine)(Code)(Java Doc)
public void setProperty(String key, Object value)(Code)(Java Doc)
public void setRoot(Node node)(Code)(Java Doc)
public void setRootNode(ConfigurationNode rootNode)(Code)(Java Doc)
public Configuration subset(String prefix)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.