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

public final class JDomUtils extends Object
Common JDOM2 functions
Since:
3.0
Author:
Robert Scholte
  • Method Details

    • rewriteValue

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

      rewriteElement.

      Parameters:
      name - a String object
      value - a String object
      root - a Element object
      namespace - a Namespace object
      Returns:
      a Element object