Class XMLUtilities


  • public class XMLUtilities
    extends java.lang.Object
    • Constructor Detail

      • XMLUtilities

        public XMLUtilities()
    • 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
      • 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