Class TableCell
- java.lang.Object
-
- org.intermine.webservice.server.core.TableCell
-
- All Implemented Interfaces:
ResultCell
public final class TableCell extends java.lang.Object implements ResultCell
A representation of a table cell.- Author:
- Alex Kalderimis
-
-
Constructor Summary
Constructors Constructor Description TableCell(FastPathObject fpo, Path view, boolean isKeyField)
Construct a table cell.TableCell(Path view)
Construct a table cell for a null value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getField()
java.lang.Integer
getId()
FastPathObject
getObject()
Path
getPath()
java.lang.String
getType()
boolean
isKeyField()
java.lang.String
toString()
-
-
-
Constructor Detail
-
TableCell
public TableCell(FastPathObject fpo, Path view, boolean isKeyField)
Construct a table cell.- Parameters:
fpo
- The object backing this cell.view
- The path this cell is a projection of.isKeyField
- Whether this cell is a key field.
-
TableCell
public TableCell(Path view)
Construct a table cell for a null value.- Parameters:
view
- The path this cell is a projection of.
-
-
Method Detail
-
isKeyField
public boolean isKeyField()
- Specified by:
isKeyField
in interfaceResultCell
- Returns:
- whether this cell represents a key field
-
getField
public java.lang.Object getField()
- Specified by:
getField
in interfaceResultCell
- Returns:
- the object this cell projects
-
getObject
public FastPathObject getObject()
- Specified by:
getObject
in interfaceResultCell
- Returns:
- the object this cell contains
-
getType
public java.lang.String getType()
- Specified by:
getType
in interfaceResultCell
- Returns:
- the type of the value of this cell.
-
getPath
public Path getPath()
- Specified by:
getPath
in interfaceResultCell
- Returns:
- the path of this cell
-
getId
public java.lang.Integer getId()
- Specified by:
getId
in interfaceResultCell
- Returns:
- the id of the object of this cell.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-