Class TableGroup
java.lang.Object
com.orchestranetworks.addon.dmdv.model.extension.DiagramNode
com.orchestranetworks.addon.dmdv.model.extension.TableGroup
Represents a group node at the table level (should be differentiated from
DatasetGroup
).- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionAdds a child field node inside the current group node.Adds a child group to the current group.addPrimaryKeyField
(String name) Adds a child field node as the primary key for the current group node.Returns an unmodifiable list of direct child nodes inside the current group node.Returns the container table.Returns a string that describes the node data type.int
Returns the maximum number of occurrences of this node.int
Returns the minimum number of occurrences of this node.Returns the direct parent group node of the current node; returnsnull
if the current group node is a direct child of the table node.boolean
Returnstrue
if the current node is a group contained in a table node.void
setCardinality
(int minOccurrence, int maxOccurrence) Sets a node's cardinality.void
setDataType
(String dataType) Sets the node dataType.Methods inherited from class com.orchestranetworks.addon.dmdv.model.extension.DiagramNode
getLabel, getName, isDatasetField, isDatasetGroup, isTable, isTableField, setLabel, setLabel
-
Method Details
-
getParent
Returns the direct parent group node of the current node; returnsnull
if the current group node is a direct child of the table node.- Overrides:
getParent
in classDiagramNode
-
isTableGroup
public boolean isTableGroup()Description copied from class:DiagramNode
Returnstrue
if the current node is a group contained in a table node.- Overrides:
isTableGroup
in classDiagramNode
-
getContainerTable
Returns the container table. -
getChildren
Returns an unmodifiable list of direct child nodes inside the current group node. -
getMinOccurrence
public int getMinOccurrence()Returns the minimum number of occurrences of this node. -
getMaxOccurrence
public int getMaxOccurrence()Returns the maximum number of occurrences of this node. -
setCardinality
public void setCardinality(int minOccurrence, int maxOccurrence) Sets a node's cardinality.- Parameters:
minOccurrence
- minimum number of occurrencemaxOccurrence
- maximum number of occurrence
-
getDataType
Returns a string that describes the node data type. -
setDataType
Sets the node dataType.- Parameters:
dataType
- - a string describes the data type
-
addGroup
Adds a child group to the current group.- Parameters:
name
- a specific name for the child group- Returns:
- a table group
- See Also:
-
addField
Adds a child field node inside the current group node.- Parameters:
name
- a specific name for the child field node- Returns:
- a table field
- See Also:
-
addPrimaryKeyField
Adds a child field node as the primary key for the current group node.- Parameters:
name
- a specific name for the child field node- Returns:
- a table field
- See Also:
-