Skip to content

Commit

Permalink
add javadoc for fix JabRef#6199
Browse files Browse the repository at this point in the history
  • Loading branch information
devinluo27 committed Apr 25, 2021
1 parent 82fd623 commit 87ad1c3
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@ private Optional<String> getUrl(Record record) {
.findFirst();
}

/**
* Extracts url address of Class Url generated from a user-imported .xml file.
* More specifically, this method will check whether text of url is wrapped in a style tag.
* If it is, extract from inner text; otherwise, use vanilla text outside.
*
* @param url a Url class object containing info from .xml file imported by user.
* @return entity url address of given class url
*/
private Optional<String> getUrlValue(Url url) {
Optional<List<Object>> urlContent = Optional.ofNullable(url).map(Url::getContent);
List<Object> list = urlContent.orElse(null);
Expand Down

0 comments on commit 87ad1c3

Please sign in to comment.