Package uk.ac.starlink.datanode.nodes
Class DataType
- java.lang.Object
-
- uk.ac.starlink.datanode.nodes.DataType
-
public class DataType extends java.lang.Object
Enumeration-like class describing types of data object which can be supplied by a DataNode. This is intended to cover the sort of object - like a table or array - which can have useful things done to it by external applications. It's not designed to enumerate a fine-grained list of all possible objects which might relate to a node.- Since:
- 19 Jan 2005
- Author:
- Mark Taylor (Starlink)
-
-
Field Summary
Fields Modifier and Type Field Description static DataType
DATA_SOURCE
DataType representing aDataSource
object.static DataType
TABLE
DataType representing aStarTable
object.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DataType(java.lang.String name, java.lang.Class clazz)
Constructs a new DataType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getDataClass()
Returns the class of data object corresponding to this type.java.lang.String
getName()
Returns the name of this type.java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of this type.- Returns:
- type name
-
getDataClass
public java.lang.Class getDataClass()
Returns the class of data object corresponding to this type.- Returns:
- data object class
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-