Package com.orchestranetworks.hierarchy
Interface HierarchyNode
-
public interface HierarchyNode
Represents a node in a hierarchy. A hierarchy node is either a record, an enumeration value, a technical node (root or a parent for orphans).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getEnumerationValue()
Adaptation
getJoinOccurrence()
Returns the association record that links the current node with its parent.Adaptation
getOccurrence()
Returns the current record being displayed.HierarchyNode
getParentHierarchyNode()
Returns this node's parent node in the hierarchy.boolean
isEnumerationNode()
Returnstrue
if the current node is an enumeration node.boolean
isOccurrenceNode()
Returnstrue
if the current node is a table record node.boolean
isOrphansParent()
Returnstrue
if the current node is the parent of an orphan.boolean
isRoot()
Returnstrue
if the current node is the root of the hierarchy.boolean
isTarget()
Returnstrue
if the current record is a record in the target table.boolean
isTerminal()
Returnstrue
if the current node has no children in the hierarchy.
-
-
-
Method Detail
-
getParentHierarchyNode
HierarchyNode getParentHierarchyNode()
Returns this node's parent node in the hierarchy.
-
getOccurrence
Adaptation getOccurrence()
Returns the current record being displayed.Warning: if this node is an enumeration node, a root or an orphan's parent, this method returns
null
.- See Also:
getEnumerationValue()
-
getJoinOccurrence
Adaptation getJoinOccurrence()
Returns the association record that links the current node with its parent.Warning: if this node is an enumeration node, a root or an orphan's parent, or if there is no join dependency between the node and its parent, this method returns
null
.- See Also:
getOccurrence()
-
getEnumerationValue
Object getEnumerationValue()
- See Also:
getOccurrence()
-
isEnumerationNode
boolean isEnumerationNode()
Returnstrue
if the current node is an enumeration node. An enumeration corresponds to axs:enumeration
element in the data model.In this case, the method
getOccurrence()
returnsnull
.- See Also:
getEnumerationValue()
-
isOccurrenceNode
boolean isOccurrenceNode()
Returnstrue
if the current node is a table record node.In this case, the method
getEnumerationValue()
returnsnull
.- See Also:
getOccurrence()
-
isOrphansParent
boolean isOrphansParent()
Returnstrue
if the current node is the parent of an orphan.In this case, the method
getOccurrence()
returnsnull
.
-
isRoot
boolean isRoot()
Returnstrue
if the current node is the root of the hierarchy.In this case, the method
getOccurrence()
returnsnull
.
-
isTarget
boolean isTarget()
Returnstrue
if the current record is a record in the target table.The target table is the table from which the hierarchy was built.
-
isTerminal
boolean isTerminal()
Returnstrue
if the current node has no children in the hierarchy.
-
-