java.lang.Object
org.apache.maven.shared.release.transform.jdom.JDomUtils

public final class JDomUtils extends Object
Common JDom functions
Since:
3.0
  • Constructor Details

    • JDomUtils

      private JDomUtils()
  • Method Details

    • rewriteValue

      public static void rewriteValue(org.jdom.Element element, 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(String name, String value, org.jdom.Element root, org.jdom.Namespace namespace)