Class Table
- java.lang.Object
-
- com.orchestranetworks.addon.dmdv.model.extension.DiagramNode
-
- com.orchestranetworks.addon.dmdv.model.extension.Table
-
public final class Table extends DiagramNode
Represents a table node.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableField
addField(java.lang.String name)
Adds a child field node inside the current table node.TableGroup
addGroup(java.lang.String name)
Adds a child group node inside the current table node.TableField
addPrimaryKeyField(java.lang.String name)
Adds a child field node as primary key inside the current table node.java.util.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; returnsnull
if the current table node is external.java.lang.String
getTooltip()
Returns the tool tip of the current external table node.boolean
isExternalTable()
Returnstrue
if the current table node is an external table.boolean
isTable()
Returnstrue
if the current node is a table node.-
Methods inherited from class com.orchestranetworks.addon.dmdv.model.extension.DiagramNode
getLabel, getName, isDatasetField, isDatasetGroup, isTableField, isTableGroup, setLabel, setLabel
-
-
-
-
Method Detail
-
getTooltip
public java.lang.String getTooltip()
Returns the tool tip of the current external table node.- See Also:
isExternalTable()
-
isExternalTable
public boolean isExternalTable()
Returnstrue
if the current table node is an external table.
-
getParent
public DatasetGroup getParent()
Returns the direct parent group node of the current table node; returnsnull
if the current table node is external.- Overrides:
getParent
in classDiagramNode
-
getChildren
public java.util.List<DiagramNode> getChildren()
Returns an unmodifiable list of direct child nodes inside the current table node.
-
isTable
public boolean isTable()
Description copied from class:DiagramNode
Returnstrue
if the current node is a table node.- Overrides:
isTable
in classDiagramNode
-
addGroup
public TableGroup addGroup(java.lang.String name)
Adds a child group node inside the current table node.- Parameters:
name
- a specific name for the child group node.- Returns:
- a table group
- See Also:
TableGroup
-
addField
public TableField addField(java.lang.String name)
Adds a child field node inside the current table node.- Parameters:
name
- a specific the name f the child field node.- Returns:
- a table field
- See Also:
TableField
-
addPrimaryKeyField
public TableField addPrimaryKeyField(java.lang.String name)
Adds a child field node as primary key inside the current table node.- Parameters:
name
- a specific name for the child field node.- Returns:
- a table field
- See Also:
TableField
-
-