Class DatasetGroup
- java.lang.Object
-
- com.orchestranetworks.addon.dmdv.model.extension.DiagramNode
-
- com.orchestranetworks.addon.dmdv.model.extension.DatasetGroup
-
public final class DatasetGroup extends DiagramNode
Represents a group node at the dataset level (should be distinguished fromTableGroup).- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatasetFieldaddField(java.lang.String name)Adds a child field node inside the current group node.DatasetGroupaddGroup(java.lang.String name)Add a child group of the current group.TableaddTable(java.lang.String name)Adds a child table node inside the current group node.java.util.List<DiagramNode>getChildren()Returns an unmodifiable list of child nodes inside the current group node.DatasetGroupgetParent()Returns current node's parent group; returnsnullif the current node is the root node.booleanisDatasetGroup()Returnstrueif the current node is a group contained in a dataset node and not in a table node.-
Methods inherited from class com.orchestranetworks.addon.dmdv.model.extension.DiagramNode
getLabel, getName, isDatasetField, isTable, isTableField, isTableGroup, setLabel, setLabel
-
-
-
-
Method Detail
-
isDatasetGroup
public boolean isDatasetGroup()
Description copied from class:DiagramNodeReturnstrueif the current node is a group contained in a dataset node and not in a table node.- Overrides:
isDatasetGroupin classDiagramNode
-
getChildren
public java.util.List<DiagramNode> getChildren()
Returns an unmodifiable list of child nodes inside the current group node.
-
addGroup
public DatasetGroup addGroup(java.lang.String name)
Add a child group of the current group.- Parameters:
name- specific name for the child group node.- See Also:
DatasetGroup
-
getParent
public DatasetGroup getParent()
Returns current node's parent group; returnsnullif the current node is the root node.- Overrides:
getParentin classDiagramNode- See Also:
Diagram.getRootNode()
-
addTable
public Table addTable(java.lang.String name)
Adds a child table node inside the current group node.- Parameters:
name- specific name for the child table node.- See Also:
Table
-
addField
public DatasetField addField(java.lang.String name)
Adds a child field node inside the current group node.- Parameters:
name- - specific name for the child field node.- See Also:
DatasetField
-
-