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 TableFieldaddField(java.lang.String name)Adds a child field node inside the current table node.TableGroupaddGroup(java.lang.String name)Adds a child group node inside the current table node.TableFieldaddPrimaryKeyField(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.DatasetGroupgetParent()Returns the direct parent group node of the current table node; returnsnullif the current table node is external.java.lang.StringgetTooltip()Returns the tool tip of the current external table node.booleanisExternalTable()Returnstrueif the current table node is an external table.booleanisTable()Returnstrueif 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()
Returnstrueif the current table node is an external table.
-
getParent
public DatasetGroup getParent()
Returns the direct parent group node of the current table node; returnsnullif the current table node is external.- Overrides:
getParentin 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:DiagramNodeReturnstrueif the current node is a table node.- Overrides:
isTablein 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
-
-