Class JDomUtils
java.lang.Object
org.apache.maven.shared.release.transform.jdom2.JDomUtils
Common JDOM2 functions
- Since:
- 3.0
- Author:
- Robert Scholte
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.jdom2.Element
rewriteElement
(String name, String value, org.jdom2.Element root, org.jdom2.Namespace namespace) rewriteElement.static void
rewriteValue
(org.jdom2.Element element, String value) Updates the text value of the given element.
-
Method Details
-
rewriteValue
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 benull
.value
- The text string to set, must not benull
.
-
rewriteElement
public static org.jdom2.Element rewriteElement(String name, String value, org.jdom2.Element root, org.jdom2.Namespace namespace) rewriteElement.
-