|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.ColumnData
public abstract class ColumnData
A column which can supply and possibly store cells in array-like storage as well as supply column metadata. Note there is nothing in this class which describes the number of elements it contains (length of the column). Columns are intended to be managed by tables, and it is the table which should keep track of this information.
Constructor Summary | |
---|---|
ColumnData()
Constructs a new ColumnData with no metadata. |
|
ColumnData(ColumnInfo colinfo)
Constructs a new ColumnData with metadata supplied by a given ColumnInfo object. |
|
ColumnData(ValueInfo base)
Performs ColumnData initialisation based on template ValueInfo object. |
Method Summary | |
---|---|
ColumnInfo |
getColumnInfo()
Returns the ColumnInfo which provides the metadata for this column. |
boolean |
isWritable()
Indicates whether this object can store values. |
abstract java.lang.Object |
readValue(long irow)
Returns the value stored at a given row in this column. |
void |
setColumnInfo(ColumnInfo colinfo)
Sets the ColumnInfo which provides the metadata for this column. |
void |
storeValue(long irow,
java.lang.Object val)
Stores a given value in a given row for this column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnData()
public ColumnData(ColumnInfo colinfo)
colinfo
- the column metadatapublic ColumnData(ValueInfo base)
base
- templateMethod Detail |
---|
public ColumnInfo getColumnInfo()
public void setColumnInfo(ColumnInfo colinfo)
colinfo
- the column metadatapublic abstract java.lang.Object readValue(long irow) throws java.io.IOException
irow
- the row from which to retrieve the value
java.io.IOException
- if there is some problem readingpublic void storeValue(long irow, java.lang.Object val) throws java.io.IOException
val
- the object to storeirow
- the row to store it in
java.lang.UnsupportedOperationException
- if !isWritable()
java.lang.NullPointerException
- if val==null and
this column is not nullable
java.lang.ArrayStoreException
- if val is not compatible
with the content class of this column
java.io.IOException
- if there is some problem writingpublic boolean isWritable()
storeValue(long, java.lang.Object)
can be used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |