@KFStep(name="SubstringReplacer", category="Tools", toolTipText="Replace substrings in String attribute values using either literal match-and-replace or regular expression matching. The attributes to apply the match and replace rules to can be selected via a range string (e.g. 1-5,6-last) or by a comma-separated list of attribute names (/first and /last can be used to indicate the first and last attribute respectively)", iconPath="weka/gui/knowledgeflow/icons/DefaultFilter.gif") public class SubstringReplacer extends BaseStep
| Constructor and Description |
|---|
SubstringReplacer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCustomEditorForStep()
Return the fully qualified name of a custom editor component (JComponent)
to use for editing the properties of the step.
|
List<String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
String |
getMatchReplaceDetails()
Get the internally encoded list of match-replace rules
|
List<String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
Instances |
outputStructureForConnectionType(String connectionName)
If possible, get the output structure for the named connection type as a
header-only set of instances.
|
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
void |
setMatchReplaceDetails(String details)
Set internally encoded list of match-replace rules
|
void |
stepInit()
Initialize the step
|
environmentSubstitute, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, setName, setStepIsResourceIntensive, setStepManager, start, stop@ProgrammaticProperty public void setMatchReplaceDetails(String details)
details - the list of match-replace rulespublic String getMatchReplaceDetails()
public void stepInit()
throws WekaException
WekaException - if a problem occurspublic List<String> getIncomingConnectionTypes()
public List<String> getOutgoingConnectionTypes()
public void processIncoming(Data data) throws WekaException
processIncoming in interface BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the data to processWekaException - if a problem occurspublic Instances outputStructureForConnectionType(String connectionName) throws WekaException
outputStructureForConnectionType in interface StepoutputStructureForConnectionType in class BaseStepconnectionName - the name of the connection type to get the output
structure forWekaException - if a problem occurspublic String getCustomEditorForStep()
getCustomEditorForStep in interface StepgetCustomEditorForStep in class BaseStepCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.