File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
vcell-core/src/main/java/org/jlibsedml/execution Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 1
1
package org .jlibsedml .execution ;
2
2
3
- import java .io .File ;
4
3
import java .net .URI ;
5
4
import java .util .List ;
6
5
7
- import cbit .vcell .resource .OperatingSystemInfo ;
8
6
import org .jlibsedml .ArchiveComponents ;
9
7
import org .jlibsedml .IModelContent ;
10
8
@@ -14,19 +12,10 @@ public ArchiveModelResolver(ArchiveComponents ac) {
14
12
this .ac =ac ;
15
13
}
16
14
public String getModelXMLFor (URI modelURI ) {
17
- String rc = null ;
18
- // Considering the import for nested SED-ML document
19
- String regExp = null ;
15
+ String rc =null ;
20
16
List <IModelContent > children = ac .getModelFiles ();
21
17
for (IModelContent imc : children ) {
22
- if (OperatingSystemInfo .getInstance ().isWindows ()) {
23
- regExp = "\\ \\ " ;
24
- } else {
25
- regExp = "/" ;
26
- }
27
- String [] splitURI = modelURI .toString ().split (regExp );
28
- String filename = splitURI [splitURI .length -1 ];
29
- if (imc .getName ().equals (filename )){
18
+ if (imc .getName ().equals (modelURI .toString ())){
30
19
rc = imc .getContents ();
31
20
}
32
21
}
You can’t perform that action at this time.
0 commit comments