Skip to content
Snippets Groups Projects
Commit e9f7817c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

JavaDoc added

parent d6b56659
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!560Resolve "add support for modifications and states in sbml export/import"
package lcsb.mapviewer.converter.model.sbml;
import javax.xml.stream.XMLStreamException;
import org.apache.commons.lang3.StringEscapeUtils;
......@@ -7,7 +6,24 @@ import org.sbml.jsbml.AbstractNamedSBase;
import lcsb.mapviewer.converter.InvalidInputDataExecption;
/**
* This utility class parses notes from SBML node and prepares escaped string
* ready to use in SBML.
*
* @author Piotr Gawron
*
*/
public class NotesUtility {
/**
* Extract notes from SBML node
*
* @param sbmlElement
* SBML node
* @return notes
* @throws InvalidInputDataExecption
* thrown when there is problem with extracting notes
*/
public static String extractNotes(AbstractNamedSBase sbmlElement) throws InvalidInputDataExecption {
String notes = "";
try {
......@@ -29,6 +45,13 @@ public class NotesUtility {
return notes;
}
/**
* Prepares escaped xml string with notes.
*
* @param notes
* notes to be processed
* @return escaped xml string with notes
*/
public static String prepareEscapedXmlNotes(String notes) {
if (notes == null) {
return "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment