|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.WrapperStarTable
uk.ac.starlink.table.MetaCopyStarTable
public class MetaCopyStarTable
Wrapper table which makes deep copies of the table metadata, including column metadata and table parameters. Changes can safely be made to the metadata of this table without affecting the base table. Note that the metadata will not track changes in the column count of the base table.
Field Summary |
---|
Fields inherited from class uk.ac.starlink.table.WrapperStarTable |
---|
baseTable |
Constructor Summary | |
---|---|
MetaCopyStarTable(StarTable base)
Constructor. |
Method Summary | |
---|---|
ColumnInfo |
getColumnInfo(int icol)
Returns the object describing the data in a given column. |
String |
getName()
Returns the name of this table, if it has one. |
DescribedValue |
getParameterByName(String name)
Returns a parameter (table-wide metadata item) of this table located by its name. |
List |
getParameters()
Returns a list of table parameters, that is items which pertain to the entire table. |
URL |
getURL()
Initially returns null to indicate that this table itself is not persistent. |
void |
setColumnInfo(int icol,
ColumnInfo colInfo)
|
void |
setName(String name)
Sets the name of this table. |
void |
setParameter(DescribedValue dval)
Adds the given DescribedValue to the list of parameter metadata objects associated with this table. |
void |
setParameters(List paramList)
|
void |
setURL(URL url)
Sets the URL of this table. |
Methods inherited from class uk.ac.starlink.table.WrapperStarTable |
---|
checkedLongToInt, getBaseTable, getCell, getColumnAuxDataInfos, getColumnCount, getRow, getRowCount, getRowSequence, isRandom, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MetaCopyStarTable(StarTable base)
base
- base tableMethod Detail |
---|
public String getName()
StarTable
getName
in interface StarTable
getName
in class WrapperStarTable
public void setName(String name)
StarTable
StarTable.getName()
.
setName
in interface StarTable
setName
in class WrapperStarTable
name
- table namepublic URL getURL()
WrapperStarTable
getURL
in interface StarTable
getURL
in class WrapperStarTable
public void setURL(URL url)
StarTable
StarTable.getURL()
.
setURL
in interface StarTable
setURL
in class WrapperStarTable
url
- table URLpublic List getParameters()
StarTable
DescribedValue
object.
getParameters
in interface StarTable
getParameters
in class WrapperStarTable
public void setParameters(List paramList)
public DescribedValue getParameterByName(String name)
StarTable
getParameterByName
in interface StarTable
getParameterByName
in class WrapperStarTable
name
- the name of the table parameter requiredpublic void setParameter(DescribedValue dval)
StarTable
setParameter
in interface StarTable
setParameter
in class WrapperStarTable
dval
- the new parameter datum to addpublic ColumnInfo getColumnInfo(int icol)
StarTable
getColumnInfo
in interface StarTable
getColumnInfo
in class WrapperStarTable
icol
- the column for which header information is required
public void setColumnInfo(int icol, ColumnInfo colInfo)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |