|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.filter.BasicFilter
uk.ac.starlink.ttools.filter.FixNamesFilter
public class FixNamesFilter
Filter to normalise syntax of column and parameter names so they are legal java identifiers.
Constructor Summary | |
---|---|
FixNamesFilter()
Constructor. |
Method Summary | |
---|---|
ProcessingStep |
createStep(Iterator argIt)
Creates a new ProcessingStep based on a sequence of command-line arguments. |
String |
fixName(String name)
Performs the name unmunging. |
String[] |
getDescriptionLines()
|
StarTable |
wrap(StarTable base)
Performs a table filtering step. |
Methods inherited from class uk.ac.starlink.ttools.filter.BasicFilter |
---|
explainSyntax, getDescription, getName, getUsage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixNamesFilter()
Method Detail |
---|
public String[] getDescriptionLines()
getDescriptionLines
in class BasicFilter
public ProcessingStep createStep(Iterator argIt) throws ArgException
ProcessingFilter
If the argument list is badly-formed as far as this filter is
concerned, an ArgException
should be thrown.
If its usageFrament
is blank, it will be filled in
later using this mode's usage text.
createStep
in interface ProcessingFilter
argIt
- iterator over command-line arguments positioned
at the first one
ArgException
public StarTable wrap(StarTable base)
ProcessingStep
wrap
in interface ProcessingStep
base
- input table
public String fixName(String name)
name
- input name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |