public class ConfigurationFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[][] |
REVERSE_XML_REPLACEMENTS |
static java.lang.String[][] |
XML_REPLACEMENTS |
| Constructor and Description |
|---|
ConfigurationFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
convertToXML(java.lang.String in)
Translate the given string to XML.
|
static java.util.Vector |
getDependencies(org.w3c.dom.Element element)
Get the product dependencies to given product.
|
static ConfigurationIF |
getFromDatabase()
Get the configuration from database.
|
static void |
printOutNode(java.io.PrintStream out,
java.lang.String prefix,
org.w3c.dom.Node node,
boolean recursive) |
static java.lang.String |
reverse_convertToXML(java.lang.String in)
Reverse XML convert
|
static void |
writeXML(java.io.File file,
org.w3c.dom.Document doc)
Write out a XML file containing a configuration.
|
static void |
writeXML(java.io.PrintStream out,
org.w3c.dom.Document doc)
Write out a XML file containing a configuration.
|
public static final java.lang.String[][] XML_REPLACEMENTS
public static final java.lang.String[][] REVERSE_XML_REPLACEMENTS
public static ConfigurationIF getFromDatabase()
public static java.lang.String convertToXML(java.lang.String in)
in - string to be converted.public static java.lang.String reverse_convertToXML(java.lang.String in)
in - string to be converted.public static java.util.Vector getDependencies(org.w3c.dom.Element element)
element - The product node.java.lang.Exceptionpublic static void printOutNode(java.io.PrintStream out,
java.lang.String prefix,
org.w3c.dom.Node node,
boolean recursive)
out - The print stream.prefix - The list prefix string.list - the node list to be printed.public static void writeXML(java.io.File file,
org.w3c.dom.Document doc)
throws java.lang.Exception
java.lang.Exceptionpublic static void writeXML(java.io.PrintStream out,
org.w3c.dom.Document doc)
throws java.lang.Exception
java.lang.Exception