Package com.swiftmq.mgmt
Class XMLUtilities
- java.lang.Object
-
- com.swiftmq.mgmt.XMLUtilities
-
public class XMLUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XMLUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
configToXML(Configuration config, org.dom4j.Element root)
static Configuration
createConfigurationTemplate(java.lang.String xml)
static org.dom4j.Document
createDocument(java.io.InputStream in)
static org.dom4j.Document
createDocument(java.lang.String xml)
static void
elementToXML(org.dom4j.Element ele, org.dom4j.Element root)
static void
entityToXML(org.dom4j.Element parent, java.lang.String tagName, Entity entity, boolean addName)
static Configuration
fillConfiguration(Configuration template, java.lang.String xml)
static Configuration
fillConfiguration(Configuration template, org.dom4j.Document doc)
static java.util.List
getCLICommands(java.lang.String xml, java.lang.String phase)
static org.dom4j.Element
getSwiftletElement(java.lang.String searched, org.dom4j.Element root)
static void
loadIcons(Entity entity, java.lang.ClassLoader loader)
static void
writeDocument(org.dom4j.Document document, java.io.StringWriter stringWriter)
static void
writeDocument(org.dom4j.Document document, java.lang.String filename)
-
-
-
Method Detail
-
createDocument
public static org.dom4j.Document createDocument(java.lang.String xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createDocument
public static org.dom4j.Document createDocument(java.io.InputStream in) throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeDocument
public static void writeDocument(org.dom4j.Document document, java.lang.String filename) throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeDocument
public static void writeDocument(org.dom4j.Document document, java.io.StringWriter stringWriter) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createConfigurationTemplate
public static Configuration createConfigurationTemplate(java.lang.String xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getCLICommands
public static java.util.List getCLICommands(java.lang.String xml, java.lang.String phase) throws java.lang.Exception
- Throws:
java.lang.Exception
-
loadIcons
public static void loadIcons(Entity entity, java.lang.ClassLoader loader) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSwiftletElement
public static org.dom4j.Element getSwiftletElement(java.lang.String searched, org.dom4j.Element root) throws java.lang.Exception
- Throws:
java.lang.Exception
-
fillConfiguration
public static Configuration fillConfiguration(Configuration template, java.lang.String xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
fillConfiguration
public static Configuration fillConfiguration(Configuration template, org.dom4j.Document doc) throws java.lang.Exception
- Throws:
java.lang.Exception
-
entityToXML
public static void entityToXML(org.dom4j.Element parent, java.lang.String tagName, Entity entity, boolean addName) throws java.lang.Exception
- Throws:
java.lang.Exception
-
configToXML
public static void configToXML(Configuration config, org.dom4j.Element root) throws java.lang.Exception
- Throws:
java.lang.Exception
-
elementToXML
public static void elementToXML(org.dom4j.Element ele, org.dom4j.Element root) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-