net.sf.mmapps.modules.config
Class ConfigurationXMLWriter

java.lang.Object
  extended bynet.sf.mmapps.modules.config.ConfigurationXMLWriter

public abstract class ConfigurationXMLWriter
extends java.lang.Object

This is a utility class to serialize configurations to xml

Version:
$Id: ConfigurationXMLWriter.java,v 1.4 2004/05/03 11:18:36 keesj Exp $
Author:
Kees Jongenburger

Constructor Summary
ConfigurationXMLWriter()
           
 
Method Summary
static java.lang.String createApplicationConfiguration(ApplicationConfiguration appconfig)
           
static java.lang.String createNodeManagerConfiguration(NodeManagerConfiguration nodeManagerConfiguration)
           
static simplexml.XMLElement getXMLFieldConfigurations(FieldConfigurations fieldConfigurations)
           
static void writeApplication(ApplicationConfiguration appconfig, java.io.File basedir)
          based on the data in the ApplicationConfiguration this method create Files and directories containg xml fiels (in the current directory)
static void writeConfiguration(Configuration config, java.io.File baseDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationXMLWriter

public ConfigurationXMLWriter()
Method Detail

writeConfiguration

public static void writeConfiguration(Configuration config,
                                      java.io.File baseDir)
                               throws java.lang.Exception
Throws:
java.lang.Exception

writeApplication

public static void writeApplication(ApplicationConfiguration appconfig,
                                    java.io.File basedir)
based on the data in the ApplicationConfiguration this method create Files and directories containg xml fiels (in the current directory)

Parameters:
appconfig - the application configuration
basedir - the config/applications directory

createApplicationConfiguration

public static java.lang.String createApplicationConfiguration(ApplicationConfiguration appconfig)
Returns:
a String containing the xml definition of the application

createNodeManagerConfiguration

public static java.lang.String createNodeManagerConfiguration(NodeManagerConfiguration nodeManagerConfiguration)
Returns:
an String representation of an nodemanager configuration (builder.xml)

getXMLFieldConfigurations

public static simplexml.XMLElement getXMLFieldConfigurations(FieldConfigurations fieldConfigurations)
Returns:
an string representation of the xml configuration of a node field


Copyright © 2003-2004 mmapps. All Rights Reserved.