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 DatasetField
addField(java.lang.String name)
Adds a child field node inside the current group node.DatasetGroup
addGroup(java.lang.String name)
Add a child group of the current group.Table
addTable(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.DatasetGroup
getParent()
Returns current node's parent group; returnsnull
if the current node is the root node.boolean
isDatasetGroup()
Returnstrue
if 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:DiagramNode
Returnstrue
if the current node is a group contained in a dataset node and not in a table node.- Overrides:
isDatasetGroup
in 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; returnsnull
if the current node is the root node.- Overrides:
getParent
in 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
-
-