Class JDomUtils


  • public final class JDomUtils
    extends java.lang.Object
    Common JDom functions
    Since:
    3.0
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private JDomUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.jdom.Element rewriteElement​(java.lang.String name, java.lang.String value, org.jdom.Element root, org.jdom.Namespace namespace)  
      static void rewriteValue​(org.jdom.Element element, java.lang.String value)
      Updates the text value of the given element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JDomUtils

        private JDomUtils()
    • Method Detail

      • rewriteValue

        public static void rewriteValue​(org.jdom.Element element,
                                        java.lang.String value)
        Updates the text value of the given element. The primary purpose of this method is to preserve any whitespace and comments around the original text value.
        Parameters:
        element - The element to update, must not be null.
        value - The text string to set, must not be null.
      • rewriteElement

        public static org.jdom.Element rewriteElement​(java.lang.String name,
                                                      java.lang.String value,
                                                      org.jdom.Element root,
                                                      org.jdom.Namespace namespace)