public class GeppettoModelTypesVisitor extends TypesSwitch<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
private java.nio.file.Path |
localGeppettoModelFile |
private java.util.Map<java.lang.String,java.lang.String> |
replaceMap |
private RuntimeProject |
runtimeProject |
private Scope |
scope |
private java.lang.String |
URLIdentifier |
private Zipper |
zipper |
modelPackage
Constructor and Description |
---|
GeppettoModelTypesVisitor(java.nio.file.Path localGeppettoModelFile,
RuntimeProject runtimeProject,
Zipper zipper,
Scope scope) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
caseImportType(ImportType type)
Returns the result of interpreting the object as an instance of 'Import Type'.
|
java.lang.String |
getRelativePath(java.lang.String fullPath)
Makes a fullpath become a relativve path
|
void |
processLocalGeppettoFile() |
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
|
caseArgumentType, caseArrayType, caseCompositeType, caseCompositeVisualType, caseConnectionType, caseDynamicsType, caseExpressionType, caseHTMLType, caseImageType, caseISynchable, caseNode, caseParameterType, casePointerType, casePointType, caseQuantityType, caseSimpleType, caseStateVariableType, caseTextType, caseType, caseURLType, caseVisualType, defaultCase, doSwitch, isSwitchFor
private java.util.Map<java.lang.String,java.lang.String> replaceMap
private java.nio.file.Path localGeppettoModelFile
private Scope scope
private RuntimeProject runtimeProject
private Zipper zipper
private java.lang.String URLIdentifier
public GeppettoModelTypesVisitor(java.nio.file.Path localGeppettoModelFile, RuntimeProject runtimeProject, Zipper zipper, Scope scope)
projectId
- scope
- libraryManager
- public java.lang.Object caseImportType(ImportType type)
TypesSwitch
caseImportType
in class TypesSwitch<java.lang.Object>
type
- the target of the switch.doSwitch(EObject)
public java.lang.String getRelativePath(java.lang.String fullPath)
fullPath
- 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 void processLocalGeppettoFile() throws java.io.IOException
java.io.IOException