public class TopcatTableNamer extends Object implements uk.ac.starlink.ttools.task.TableNamer
An instance of this class can be used to prepare a DescribedValue to be stashed in the Parameter list of a StarTable, where the value is the name to be used for that table.
Modifier and Type | Field and Description |
---|---|
static TopcatTableNamer |
FILENAME_NAMER
Namer instance that quotes filenames without directories.
|
static TopcatTableNamer |
LABEL_NAMER
Namer instance that uses TopcatModel labels.
|
static TopcatTableNamer |
PATHNAME_NAMER
Namer instance that quotes pathnames.
|
static TopcatTableNamer |
TNUM_NAMER
Namer instance that uses topcat table sequence numbers.
|
Constructor and Description |
---|
TopcatTableNamer(String name,
boolean hasFormat)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<uk.ac.starlink.ttools.task.Setting> |
createInputTableSettings(uk.ac.starlink.ttools.task.AbstractInputTableParameter<?> inParam,
uk.ac.starlink.ttools.task.FilterParameter filterParam,
TopcatModel tcModel)
Returns a list of settings for use with a stilts command
that characterise a TopcatModel as an input table.
|
static uk.ac.starlink.ttools.task.CredibleString |
getSelectExpression(RowSubset rset)
Returns a best effort at an expression indicating row selection
corresponding to a given RowSubset.
|
static uk.ac.starlink.table.StarTable |
getTable(TopcatModel tcModel)
Returns a table corresponding to the current apparent table of
a topcat model, intended to be used with an instance of this class.
|
uk.ac.starlink.table.TableBuilder |
getTableFormat(uk.ac.starlink.table.StarTable table) |
static TopcatTableNamer[] |
getTableNamers()
Returns a list of TableNamer objects that give the user options for
referencing TopcatModels by a text string in generated stilts commands.
|
uk.ac.starlink.ttools.task.CredibleString |
nameTable(uk.ac.starlink.table.StarTable table) |
String |
toString() |
public static final TopcatTableNamer PATHNAME_NAMER
public static final TopcatTableNamer FILENAME_NAMER
public static final TopcatTableNamer LABEL_NAMER
public static final TopcatTableNamer TNUM_NAMER
public TopcatTableNamer(String name, boolean hasFormat)
name
- TableNamer user namehasFormat
- whether to report table format when availablepublic uk.ac.starlink.ttools.task.CredibleString nameTable(uk.ac.starlink.table.StarTable table)
nameTable
in interface uk.ac.starlink.ttools.task.TableNamer
public uk.ac.starlink.table.TableBuilder getTableFormat(uk.ac.starlink.table.StarTable table)
getTableFormat
in interface uk.ac.starlink.ttools.task.TableNamer
public static TopcatTableNamer[] getTableNamers()
public static uk.ac.starlink.table.StarTable getTable(TopcatModel tcModel)
Its parameter list also contains parameters giving various naming options corresponding to the FileNamer instances defined by this class.
tcModel
- topcat modelpublic List<uk.ac.starlink.ttools.task.Setting> createInputTableSettings(uk.ac.starlink.ttools.task.AbstractInputTableParameter<?> inParam, uk.ac.starlink.ttools.task.FilterParameter filterParam, TopcatModel tcModel)
inParam
- stilts table input parameterfilterParam
- stilts table input filter parameter, or nulltcModel
- topcat model to represent as inputpublic static uk.ac.starlink.ttools.task.CredibleString getSelectExpression(RowSubset rset)
rset
- row subsetCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.