public interface CyColumn
Module: model-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>model-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue()
Returns the default value for the column, possibly null.
|
Class<?> |
getListElementType()
Returns the data type of the list elements if the column type is List.class otherwise null.
|
String |
getName()
Returns the name of the column.
|
CyTable |
getTable()
Returns the table for this column.
|
Class<?> |
getType()
Returns the data type of the column.
|
<T> List<T> |
getValues(Class<? extends T> type)
Returns all the values, some of which may be null, for this given column.
|
VirtualColumnInfo |
getVirtualColumnInfo()
Returns information about the virtual column definition of this column.
|
boolean |
isImmutable()
Returns true if the column is immutable i.e.
|
boolean |
isPrimaryKey()
Returns true if the column is the primary key, otherwise false.
|
void |
setName(String newName)
Change the name of this column.
|
String getName()
void setName(String newName)
newName
- the new column nameIllegalArgumentException
- if the column is immutableClass<?> getType()
Class<?> getListElementType()
boolean isPrimaryKey()
boolean isImmutable()
CyTable getTable()
<T> List<T> getValues(Class<? extends T> type)
T
- the generic type of the column.type
- the datatype of this column. (You can use getType() to obtain it.)VirtualColumnInfo getVirtualColumnInfo()
VirtualColumnInfo
.Object getDefaultValue()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.