net.sourceforge.jconsole.configuration
Class ConfigurationFile

java.lang.Object
  |
  +--net.sourceforge.jconsole.plugins.NodeInformation
        |
        +--net.sourceforge.jconsole.configuration.ConfigurationFile

public class ConfigurationFile
extends NodeInformation
implements com.walding.xml.XMLLoader, com.walding.swing.TreeViewHandlerInterface


Constructor Summary
ConfigurationFile()
          Constructor for the ConfigurationFile object
ConfigurationFile(java.lang.String filename)
          Constructor for the ConfigurationFile object
 
Method Summary
 void addPlugin(com.walding.xml.XMLArguments pxa, net.sourceforge.jconsole.configuration.Node node)
           
 void addServer(com.walding.xml.XMLArguments pxa, net.sourceforge.jconsole.configuration.Node node)
          Adds a feature to the Server attribute of the ConfigurationFile object
 com.walding.xml.XMLLoader createFromXML(com.walding.xml.XMLArguments pxml_Args)
          Creates a fresh object from the given XML arguments
protected  com.walding.swing.TreeViewHandler createTreeViewHandler(com.walding.swing.TreeViewHandlerInterface obj)
          Description of the Method
 java.lang.String getLongDesc()
          Gets the LongDesc attribute of the ConfigurationFile object
 java.util.Iterator getServers()
          Gets the Servers attribute of the ConfigurationFile object
 java.lang.String getShortDesc()
          Gets the ShortDesc attribute of the ConfigurationFile object
 java.lang.String getXMLType()
          Gets the XMLType attribute of the ConfigurationFile object
 void loadFromXML(com.walding.xml.XMLArguments pxml_Args)
          Loads the given object with attributes from the XML arguments.
 void saveToXML(com.walding.xml.XMLArguments pxml_Args)
          Description of the Method
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class net.sourceforge.jconsole.plugins.NodeInformation
addChild, getChildren, getObservable, getProperties, getProperty, getProperty, getTreeViewHandler, getType, removeChild, setProperties, setProperty, setType, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationFile

public ConfigurationFile()
                  throws com.walding.xml.XMLParseException,
                         net.sourceforge.jconsole.configuration.SAXException,
                         java.io.IOException
Constructor for the ConfigurationFile object
Throws:
com.walding.xml.XMLParseException - Description of Exception
net.sourceforge.jconsole.configuration.SAXException - Description of Exception
java.io.IOException - Description of Exception

ConfigurationFile

public ConfigurationFile(java.lang.String filename)
                  throws com.walding.xml.XMLParseException,
                         net.sourceforge.jconsole.configuration.SAXException,
                         java.io.IOException
Constructor for the ConfigurationFile object
Parameters:
filename - Description of Parameter
Throws:
com.walding.xml.XMLParseException - Description of Exception
net.sourceforge.jconsole.configuration.SAXException - Description of Exception
java.io.IOException - Description of Exception
Method Detail

getXMLType

public java.lang.String getXMLType()
Gets the XMLType attribute of the ConfigurationFile object
Specified by:
getXMLType in interface com.walding.xml.XMLLoader
Returns:
The XMLType value

getShortDesc

public java.lang.String getShortDesc()
Gets the ShortDesc attribute of the ConfigurationFile object
Returns:
The ShortDesc value

getLongDesc

public java.lang.String getLongDesc()
Gets the LongDesc attribute of the ConfigurationFile object
Returns:
The LongDesc value

getServers

public java.util.Iterator getServers()
Gets the Servers attribute of the ConfigurationFile object
Returns:
The Servers value

createFromXML

public com.walding.xml.XMLLoader createFromXML(com.walding.xml.XMLArguments pxml_Args)
                                        throws java.io.IOException
Creates a fresh object from the given XML arguments
Specified by:
createFromXML in interface com.walding.xml.XMLLoader
Parameters:
pxml_Args - Description of Parameter
Returns:
Description of the Returned Value
Throws:
java.io.IOException - Description of Exception

loadFromXML

public void loadFromXML(com.walding.xml.XMLArguments pxml_Args)
                 throws java.io.IOException
Loads the given object with attributes from the XML arguments.
Specified by:
loadFromXML in interface com.walding.xml.XMLLoader
Parameters:
pxml_Args - Description of Parameter
Throws:
java.io.IOException - Description of Exception

addServer

public void addServer(com.walding.xml.XMLArguments pxa,
                      net.sourceforge.jconsole.configuration.Node node)
Adds a feature to the Server attribute of the ConfigurationFile object
Parameters:
pxa - The feature to be added to the Server attribute
node - The feature to be added to the Server attribute

addPlugin

public void addPlugin(com.walding.xml.XMLArguments pxa,
                      net.sourceforge.jconsole.configuration.Node node)

saveToXML

public void saveToXML(com.walding.xml.XMLArguments pxml_Args)
               throws java.io.IOException
Description of the Method
Specified by:
saveToXML in interface com.walding.xml.XMLLoader
Parameters:
pxml_Args - Description of Parameter
Throws:
java.io.IOException - Description of Exception

toString

public java.lang.String toString()
Description of the Method
Overrides:
toString in class java.lang.Object
Returns:
Description of the Returned Value

createTreeViewHandler

protected com.walding.swing.TreeViewHandler createTreeViewHandler(com.walding.swing.TreeViewHandlerInterface obj)
Description copied from class: NodeInformation
Description of the Method
Overrides:
createTreeViewHandler in class NodeInformation
Tags copied from class: NodeInformation
Parameters:
obj - Description of Parameter
Returns:
Description of the Returned Value