net.sf.mmapps.modules.config
Class ConfigurationXMLWriter
java.lang.Object
net.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationXMLWriter
public ConfigurationXMLWriter()
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 configurationbasedir
- 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.