Skip to content

Commit

Permalink
Javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
essiembre committed Aug 21, 2023
1 parent 573d513 commit b5c14a6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/java/com/norconex/commons/lang/xml/XML.java
Original file line number Diff line number Diff line change
Expand Up @@ -2157,12 +2157,14 @@ public String getName() {
}

/**
* Computes and adds the element value returned by the provided function
* if an element with the same name is not already present.
* A <code>null</code> function or <code>null</code> value returned
* by the function will add an empty element.
* Computes and adds the element returned by the provided function
* if an element with the same name is not already present, else, return
* the existing one.
* Passing a <code>null</code> function or <code>null</code> value returned
* by the function when there are no existing element will add a new empty
* element.
* @param tagName element name
* @param function returns the element value
* @param function taking the new element name and returning the element
* @return XML of the added element, or the already existing element
* @since 3.0.0
*/
Expand Down

0 comments on commit b5c14a6

Please sign in to comment.