org.apache.cocoon.util
Class ConfigurationUtil

java.lang.Object
  extended by org.apache.cocoon.util.ConfigurationUtil

public class ConfigurationUtil
extends Object

This class is an improved version of the Excalibur ConfigurationUtil class to support namespaces in DOMs.

Since:
2.1.10
Version:
$Id: ConfigurationUtil.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Method Summary
static Configuration toConfiguration(Element element)
          Convert a DOM Element tree into a configuration tree.
static Element toElement(Configuration configuration)
          Convert a configuration tree into a DOM Element tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toConfiguration

public static Configuration toConfiguration(Element element)
Convert a DOM Element tree into a configuration tree.

Parameters:
element - the DOM Element
Returns:
the configuration object

toElement

public static Element toElement(Configuration configuration)
                         throws ConfigurationException
Convert a configuration tree into a DOM Element tree.

Parameters:
configuration - the configuration object
Returns:
the DOM Element
Throws:
ConfigurationException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.