public class RemoveByName extends SimpleStreamFilter
-D Turns on output of debugging information.
-E <regular expression> The regular expression to match the attribute names against. (default: ^.*id$)
-V Flag for inverting the matching sense. If set, attributes are kept instead of deleted. (default: off)
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_EXPRESSION
the default expression.
|
| Constructor and Description |
|---|
RemoveByName() |
| Modifier and Type | Method and Description |
|---|---|
String |
expressionTipText()
Returns the tip text for this property.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
String |
getExpression()
Returns the regular expression in use.
|
boolean |
getInvertSelection()
Get whether the supplied columns are to be removed or kept.
|
String[] |
getOptions()
returns the options of the current setup.
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo()
Returns a string describing this classifier.
|
String |
invertSelectionTipText()
Returns the tip text for this property.
|
Enumeration<Option> |
listOptions()
Gets an enumeration describing the available options.
|
static void |
main(String[] args)
runs the filter with the given arguments.
|
void |
setExpression(String value)
Sets the regular expression to match the attribute names against.
|
void |
setInvertSelection(boolean value)
Set whether selected columns should be removed or kept.
|
void |
setOptions(String[] options)
Parses the options for this object.
|
batchFinished, inputsetInputFormatbatchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getDebug, getDoNotCheckCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapperpublic static final String DEFAULT_EXPRESSION
public String globalInfo()
globalInfo in class SimpleFilterpublic Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class Filterpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Filterpublic void setOptions(String[] options) throws Exception
-D Turns on output of debugging information.
-E <regular expression> The regular expression to match the attribute names against. (default: ^.*id$)
-V Flag for inverting the matching sense. If set, attributes are kept instead of deleted. (default: off)
setOptions in interface OptionHandlersetOptions in class Filteroptions - the options to useException - if the option setting failspublic void setExpression(String value)
value - the regular expressionpublic String getExpression()
public String expressionTipText()
public void setInvertSelection(boolean value)
value - the new invert settingpublic boolean getInvertSelection()
public String invertSelectionTipText()
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilitiespublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(String[] args)
args - the commandline argumentsCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.