QuickServer
v1.4.1

org.quickserver.util.xmlreader
Class ApplicationConfiguration

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--org.quickserver.util.xmlreader.ApplicationConfiguration
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ApplicationConfiguration
extends java.util.HashMap

This class encapsulate the Application Configuration. The example xml is

  <quickserver>
         ....
         <application-configuration>
                 <property>
                         <property-name>FTP_ROOT</property-name>
                         <property-value>c:\</property-value>
                 </property>
                 <property>
                         <property-name>Server Name</property-name>
                         <property-value>My Server</property-value>
                 </property>
         </application-configuration>
         ....
 </quickserver>
 

Since:
1.3.2
Author:
Akshathkumar Shetty
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
ApplicationConfiguration()
           
 
Method Summary
 void addProperty(Property property)
          Addes the Property passed to the HashMap
 Property findProperty(java.lang.String name)
          Finds if any Property is present.
 java.lang.String toXML(java.lang.String pad)
          Returns XML config of this class.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ApplicationConfiguration

public ApplicationConfiguration()
Method Detail

addProperty

public void addProperty(Property property)
Addes the Property passed to the HashMap


findProperty

public Property findProperty(java.lang.String name)
Finds if any Property is present.

Returns:
null if no Property was found.

toXML

public java.lang.String toXML(java.lang.String pad)
Returns XML config of this class.


QuickServer
v1.4.1

Copyright © 2003-2004 QuickServer.org