@ALDAOperator(genericExecutionMode=SWING,
level=STANDARD)
public class FilenameGenerator
extends de.unihalle.informatik.Alida.operator.ALDOperator
replacementPattern the filename extension (if existing) including the dot is
replaced by the .
In general, if a custom replacementPattern is specified, all occurrences
of this pattern are replaced using it as a Java Pattern for a Java Matcher
invoking the method Matcher.replaceAll(String) with replacementString
as argument.
| Modifier and Type | Field and Description |
|---|---|
protected de.unihalle.informatik.Alida.datatypes.ALDFileString |
fileName |
protected de.unihalle.informatik.Alida.datatypes.ALDFileString |
fileNameOut |
protected String |
replacementPattern |
protected String |
replacementString |
| Constructor and Description |
|---|
FilenameGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
operate() |
addOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, readResolve, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory@Parameter(label="Filename",
required=true,
direction=INOUT,
mode=STANDARD,
dataIOOrder=1,
description="Filename")
protected de.unihalle.informatik.Alida.datatypes.ALDFileString fileName
@Parameter(label="Replacement string",
required=true,
direction=IN,
mode=STANDARD,
dataIOOrder=2,
description="Replacment string, default replacing the extension including dot")
protected String replacementString
@Parameter(label="Replacement pattern",
required=false,
direction=IN,
mode=STANDARD,
dataIOOrder=3,
description="Pattern to be replaced (all occurences), default is extention incuding dot")
protected String replacementPattern
@Parameter(label="FilenameOut",
required=true,
direction=OUT,
mode=STANDARD,
dataIOOrder=4,
description="Filename with differnt extension")
protected de.unihalle.informatik.Alida.datatypes.ALDFileString fileNameOut
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.