org.jutil.xml.util
Class ConfigurationUtils
java.lang.Object
org.jutil.xml.util.ConfigurationUtils
public final class ConfigurationUtils
- extends java.lang.Object
|
Method Summary |
static org.apache.avalon.framework.configuration.Configuration |
createFromRawXML(java.lang.String xml)
|
static org.apache.avalon.framework.configuration.Configuration |
getNamedConfiguration(org.apache.avalon.framework.configuration.Configuration parent,
java.lang.String child,
java.lang.String name)
|
static org.apache.avalon.framework.configuration.Configuration |
readConfiguration(Element element)
|
static org.apache.avalon.framework.configuration.Configuration[] |
scanChildrenForAttributeValue(org.apache.avalon.framework.configuration.Configuration parent,
java.lang.String child,
java.lang.String attribute,
java.lang.String value)
|
static org.apache.avalon.framework.configuration.Configuration[] |
scanChildrenForValue(org.apache.avalon.framework.configuration.Configuration conf,
java.lang.String child,
java.lang.String value)
|
static org.apache.avalon.framework.configuration.Configuration[] |
scanForNamedConfigurations(org.apache.avalon.framework.configuration.Configuration parent,
java.lang.String child,
java.lang.String name)
flow configurations are stored at work-path/env/[control domain].xconf
e.g. |
static void |
writeConfiguration(org.apache.avalon.framework.configuration.Configuration conf,
org.dom4j.Element element)
|
static void |
writeConfiguration(org.apache.avalon.framework.configuration.Configuration conf,
Element element)
|
static void |
writeConfiguration(org.apache.avalon.framework.configuration.Configuration conf,
java.io.PrintStream out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationUtils
public ConfigurationUtils()
createFromRawXML
public static final org.apache.avalon.framework.configuration.Configuration createFromRawXML(java.lang.String xml)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeConfiguration
public static final void writeConfiguration(org.apache.avalon.framework.configuration.Configuration conf,
org.dom4j.Element element)
writeConfiguration
public static final void writeConfiguration(org.apache.avalon.framework.configuration.Configuration conf,
Element element)
writeConfiguration
public static final void writeConfiguration(org.apache.avalon.framework.configuration.Configuration conf,
java.io.PrintStream out)
readConfiguration
public static final org.apache.avalon.framework.configuration.Configuration readConfiguration(Element element)
scanChildrenForValue
public static final org.apache.avalon.framework.configuration.Configuration[] scanChildrenForValue(org.apache.avalon.framework.configuration.Configuration conf,
java.lang.String child,
java.lang.String value)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
scanChildrenForAttributeValue
public static final org.apache.avalon.framework.configuration.Configuration[] scanChildrenForAttributeValue(org.apache.avalon.framework.configuration.Configuration parent,
java.lang.String child,
java.lang.String attribute,
java.lang.String value)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
getNamedConfiguration
public static final org.apache.avalon.framework.configuration.Configuration getNamedConfiguration(org.apache.avalon.framework.configuration.Configuration parent,
java.lang.String child,
java.lang.String name)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
scanForNamedConfigurations
public static final org.apache.avalon.framework.configuration.Configuration[] scanForNamedConfigurations(org.apache.avalon.framework.configuration.Configuration parent,
java.lang.String child,
java.lang.String name)
throws org.apache.avalon.framework.configuration.ConfigurationException
- flow configurations are stored at work-path/env/[control domain].xconf
e.g. /WEB-INF/env/jutil.org.xconf
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException