public class TableHDUDataNode extends HDUDataNode
DataNode
interface for
representing binary or ASCII tables in FITS HDUs.Constructor and Description |
---|
TableHDUDataNode(Header header,
FITSDataNode.ArrayDataMaker hdudata)
Initialises a
TableHDUDataNode from an Header
object. |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsChildren()
The
DefaultDataNode implementation of this method returns
false . |
Object |
getDataObject(DataType dtype)
The
DefaultDataNode implementation returns any data object
which has been registered using DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object) . |
String |
getDescription()
Gets a concise description of this object.
|
String |
getNodeTLA()
The
DefaultDataNode implementation returns the string "...". |
String |
getNodeType()
Returns a short sentence indicating what kind of node this is.
|
StarTable |
getStarTable()
Returns the StarTable containing the data.
|
boolean |
hasDataObject(DataType dtype)
The
DefaultDataNode implementation returns true for
only those data objects which have been registered using
DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object) . |
boolean |
isStarTable() |
configureDetail, getHDUIndex, getHduType, getHeader, getPathElement, getPathSeparator
beep, getChildIterator, getChildMaker, getCreator, getIcon, getLabel, getName, getParentObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toString
public TableHDUDataNode(Header header, FITSDataNode.ArrayDataMaker hdudata) throws NoSuchDataException
TableHDUDataNode
from an Header
object. The stream is read to the end of the HDU.header
- a FITS header object from which the node is to be createdhdudata
- object which can supply the data stream where
the data residesNoSuchDataException
public StarTable getStarTable() throws IOException
IOException
public boolean isStarTable()
public boolean allowsChildren()
DefaultDataNode
DefaultDataNode
implementation of this method returns
false
.allowsChildren
in interface DataNode
allowsChildren
in class HDUDataNode
true
if the node is of a type which can have
child nodes, false
otherwisepublic String getDescription()
DataNode
getName
method, since they may be presented together.
It should be on one line, and preferably no longer than around
70 characters. The null
value may be returned if
there is nothing to say.getDescription
in interface DataNode
getDescription
in class HDUDataNode
public String getNodeTLA()
DefaultDataNode
DefaultDataNode
implementation returns the string "...".getNodeTLA
in interface DataNode
getNodeTLA
in class HDUDataNode
public String getNodeType()
DataNode
getNodeType
in interface DataNode
getNodeType
in class HDUDataNode
DataNode
public boolean hasDataObject(DataType dtype)
DefaultDataNode
DefaultDataNode
implementation returns true for
only those data objects which have been registered using
DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object)
.hasDataObject
in interface DataNode
hasDataObject
in class DefaultDataNode
dtype
- data object type of interestgetDataObject(type)
is likely to be successfulpublic Object getDataObject(DataType dtype) throws DataObjectException
DefaultDataNode
DefaultDataNode
implementation returns any data object
which has been registered using DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object)
.getDataObject
in interface DataNode
getDataObject
in class DefaultDataNode
dtype
- data object type of interesttype
DataObjectException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.