public class GeppettoModelVisitor extends GeppettoSwitch<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.net.URL,java.nio.file.Path> |
localFileMap |
private IGeppettoProject |
project |
private java.util.Map<java.lang.String,java.lang.String> |
replaceMap |
private RuntimeProject |
runtimeProject |
private java.lang.String |
URLIdentifier |
private Zipper |
zipper |
modelPackage
Constructor and Description |
---|
GeppettoModelVisitor(RuntimeProject runtimeProject,
Zipper zipper) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
caseGeppettoLibrary(GeppettoLibrary library)
Returns the result of interpreting the object as an instance of 'Library'.
|
private java.lang.String |
cleanLEMSNeuroMLDocument(java.lang.String lemsString) |
java.lang.String |
getRelativePath(java.lang.String fullPath)
Makes a fullpath become a relativve path
|
private void |
replaceURLs(java.nio.file.Path localFile,
java.util.Map<java.lang.String,java.lang.String> replaceMap)
This method replaces in the localFile all the occurrences of the old URLs with the new ones
|
caseDomainModel, caseExperimentState, caseExternalDomainModel, caseGeppettoModel, caseISynchable, caseLibraryManager, caseModelFormat, caseNode, caseStringToStringMap, caseTag, caseVariableValue, defaultCase, doSwitch, isSwitchFor
private IGeppettoProject project
private java.util.Map<java.lang.String,java.lang.String> replaceMap
private java.util.Map<java.net.URL,java.nio.file.Path> localFileMap
private RuntimeProject runtimeProject
private java.lang.String URLIdentifier
private Zipper zipper
public GeppettoModelVisitor(RuntimeProject runtimeProject, Zipper zipper)
localGeppettoTypeFile
- localGeppettoModelFile
- runtimeProject
- project
- zipper
- public java.lang.Object caseGeppettoLibrary(GeppettoLibrary library)
GeppettoSwitch
caseGeppettoLibrary
in class GeppettoSwitch<java.lang.Object>
library
- the target of the switch.doSwitch(EObject)
private void replaceURLs(java.nio.file.Path localFile, java.util.Map<java.lang.String,java.lang.String> replaceMap) throws java.io.IOException
localFile
- replaceMap
- java.io.IOException
public java.lang.String getRelativePath(java.lang.String fullPath)
fullPath
- private java.lang.String cleanLEMSNeuroMLDocument(java.lang.String lemsString)