Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
e9f7817c
Commit
e9f7817c
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
JavaDoc added
parent
d6b56659
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!630
WIP: Resolve "The privileges of a new user are not saved in some cases"
,
!560
Resolve "add support for modifications and states in sbml export/import"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
converter-sbml/src/main/java/lcsb/mapviewer/converter/model/sbml/NotesUtility.java
+24
-1
24 additions, 1 deletion
...ava/lcsb/mapviewer/converter/model/sbml/NotesUtility.java
with
24 additions
and
1 deletion
converter-sbml/src/main/java/lcsb/mapviewer/converter/model/sbml/NotesUtility.java
+
24
−
1
View file @
e9f7817c
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
""
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment