|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.datanode.nodes.DefaultDataNode
uk.ac.starlink.datanode.nodes.StarTableDataNode
public class StarTableDataNode
DataNode representing a StarTable.
Constructor Summary | |
---|---|
StarTableDataNode(DataSource datsrc)
|
|
StarTableDataNode(StarTable startable)
|
|
StarTableDataNode(String loc)
|
Method Summary | |
---|---|
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 |
getName()
Gets the name of this object. |
String |
getNodeTLA()
The DefaultDataNode implementation returns the string "...". |
String |
getNodeType()
Returns a short sentence indicating what kind of node this is. |
static StarTableFactory |
getTableFactory()
|
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) . |
static StarTable |
makeStarTable(DataSource datsrc)
|
static StarTable |
makeStarTable(String loc)
|
Methods inherited from class uk.ac.starlink.datanode.nodes.DefaultDataNode |
---|
allowsChildren, beep, configureDetail, getChildIterator, getChildMaker, getCreator, getIcon, getLabel, getParentObject, getPathElement, getPathSeparator, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StarTableDataNode(StarTable startable)
public StarTableDataNode(String loc) throws NoSuchDataException
NoSuchDataException
public StarTableDataNode(DataSource datsrc) throws NoSuchDataException
NoSuchDataException
Method Detail |
---|
public String getName()
DataNode
getName
in interface DataNode
getName
in class DefaultDataNode
public 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 DefaultDataNode
public String getNodeTLA()
DefaultDataNode
getNodeTLA
in interface DataNode
getNodeTLA
in class DefaultDataNode
public String getNodeType()
DataNode
getNodeType
in interface DataNode
getNodeType
in class DefaultDataNode
DataNode
public boolean hasDataObject(DataType dtype)
DefaultDataNode
DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object)
.
hasDataObject
in interface DataNode
hasDataObject
in class DefaultDataNode
dtype
- data object type of interest
public Object getDataObject(DataType dtype) throws DataObjectException
DefaultDataNode
DefaultDataNode.registerDataObject(uk.ac.starlink.datanode.nodes.DataType, java.lang.Object)
.
getDataObject
in interface DataNode
getDataObject
in class DefaultDataNode
dtype
- data object type of interest
DataObjectException
public static StarTable makeStarTable(String loc) throws NoSuchDataException
NoSuchDataException
public static StarTable makeStarTable(DataSource datsrc) throws NoSuchDataException
NoSuchDataException
public static StarTableFactory getTableFactory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |