Class JDomUtils
- java.lang.Object
-
- org.apache.maven.shared.release.transform.jdom.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.
-
-
-
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 benull
.value
- The text string to set, must not benull
.
-
rewriteElement
public static org.jdom.Element rewriteElement(java.lang.String name, java.lang.String value, org.jdom.Element root, org.jdom.Namespace namespace)
-
-