public final class Table extends DiagramNode
Modifier and Type | Method and Description |
---|---|
TableField |
addField(String name)
Adds a child field node inside the current table node.
|
TableGroup |
addGroup(String name)
Adds a child group node inside the current table node.
|
TableField |
addPrimaryKeyField(String name)
Adds a child field node as primary key inside the current table node.
|
List<DiagramNode> |
getChildren()
Returns an unmodifiable list of direct child nodes inside the current table node.
|
DatasetGroup |
getParent()
Returns the direct parent group node of the current table node; returns
null if the current table node is external. |
String |
getTooltip()
Returns the tool tip of the current external table node.
|
boolean |
isExternalTable()
Returns
true if the current table node is an external table. |
boolean |
isTable()
Returns
true if the current node is a table node. |
getLabel, getName, isDatasetField, isDatasetGroup, isTableField, isTableGroup, setLabel, setLabel
public String getTooltip()
isExternalTable()
public boolean isExternalTable()
true
if the current table node is an external table.public DatasetGroup getParent()
null
if the current table node is external.getParent
in class DiagramNode
public List<DiagramNode> getChildren()
public boolean isTable()
DiagramNode
true
if the current node is a table node.isTable
in class DiagramNode
public TableGroup addGroup(String name)
name
- a specific name for the child group node.TableGroup
public TableField addField(String name)
name
- a specific the name f the child field node.TableField
public TableField addPrimaryKeyField(String name)
name
- a specific name for the child field node.TableField