Class JDomUtils
java.lang.Object
org.apache.maven.shared.release.transform.jdom.JDomUtils
Common JDom functions
- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jdom.Element
rewriteElement
(String name, String value, org.jdom.Element root, org.jdom.Namespace namespace) static void
rewriteValue
(org.jdom.Element element, String value) Updates the text value of the given element.
-
Constructor Details
-
JDomUtils
private JDomUtils()
-
-
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
-