QuickServer
v1.4.7

org.quickserver.util.xmlreader
Class ApplicationConfiguration

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.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

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 getPromptType()
          Returns the PromptType
 void setPromptType(java.lang.String promptType)
          Sets the PromptType.
 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

setPromptType

public void setPromptType(java.lang.String promptType)
Sets the PromptType. XML Tag: <prompt-type>true</prompt-typ> Allowed values = gui | console

Since:
1.4.5
See Also:
getPromptType()

getPromptType

public java.lang.String getPromptType()
Returns the PromptType

Since:
1.4.5
See Also:
setPromptType(java.lang.String)

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.7

Copyright © 2003-2006 QuickServer.org