Class RegexComponent
- java.lang.Object
-
- org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
-
- org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
-
- tools.mdsd.ecoreworkflow.mwe2lib.component.RegexComponent
-
- All Implemented Interfaces:
WorkflowComponent
,WorkflowComponentWithID
,IWorkflowComponent
public class RegexComponent extends AbstractWorkflowComponent2
-
-
Field Summary
Fields Modifier and Type Field Description protected URIConverter
uriConverter
-
Constructor Summary
Constructors Constructor Description RegexComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReplacement(Replacement replacement)
protected List<URI>
determineFilesToReplace(Replacement replacement)
protected URI
ensureEmptyLastSegment(URI uri)
protected URI
ensureURIHasScheme(URI uri)
protected URI
fromFilename(String filename)
protected Path
getPathOfDirectoryOnFilesystem(URI uri)
protected Path
getPathOfFileURI(URI uri)
protected void
invokeInternal(WorkflowContext arg0, ProgressMonitor arg1, Issues arg2)
protected Optional<URI>
parseURI(String uri)
protected String
readFile(URI fileUri)
void
setCharset(Charset charset)
protected void
writeFile(URI fileUri, String content)
-
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
checkConfiguration, checkConfigurationInternal
-
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
checkRequiredConfigProperty, getBridge, getComponentName, getContainer, getId, getLocation, getLogMessage, invoke, invoke, postInvoke, preInvoke, setContainer, setId, setLocation, setSkipOnErrors
-
-
-
-
Field Detail
-
uriConverter
protected URIConverter uriConverter
-
-
Method Detail
-
setCharset
public void setCharset(Charset charset)
-
addReplacement
public void addReplacement(Replacement replacement)
-
invokeInternal
protected void invokeInternal(WorkflowContext arg0, ProgressMonitor arg1, Issues arg2)
- Specified by:
invokeInternal
in classAbstractWorkflowComponent
-
readFile
protected String readFile(URI fileUri) throws IOException
- Throws:
IOException
-
writeFile
protected void writeFile(URI fileUri, String content) throws IOException
- Throws:
IOException
-
determineFilesToReplace
protected List<URI> determineFilesToReplace(Replacement replacement) throws IOException
- Throws:
IOException
-
-