Click or drag to resize

HierarchyNode Class

Represent one node in a hierarchy.
Inheritance Hierarchy
SystemObject
  Aloe.EnterpriseOne.Model.Core.HierarchiesHierarchyNode

Namespace:  Aloe.EnterpriseOne.Model.Core.Hierarchies
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public sealed class HierarchyNode : IHierarchyNode, 
	ICodeNamePair

The HierarchyNode type exposes the following members.

Constructors
  NameDescription
Public methodHierarchyNode
Initializes a new instance of the HierarchyNode class.
Top
Properties
  NameDescription
Public propertyAsObject
Gets the backing domain object.
Public propertyCode
Gets the code.
Public propertyHierarchy
Gets the hierarchy.
Public propertyName
Gets the name.
Public propertyParentNode
Gets or sets the parent node of the node.
Public propertySubNodes
Gets the direct (immediate) sub nodes of the node.
Public propertyTreeLevel
Gets the level of deepness of the node within the tree, starting with 1 for the root nodes.
Top
Methods
  NameDescription
Public methodChangeCodeAndName
Changes the code and the name of the node.
Public methodEquals
Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodIsSubNodeOf
Determines whether the node is sub node of the specified node.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Public methodTraverseAllSubNodes
Gets all sub nodes, both direct and indirect of the node.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic memberInequality
Implements the operator !=.
Top
Extension Methods
  NameDescription
Public Extension MethodGetFullCodePath
Gets the full path of codes, delimited with the delimiter.
(Defined by IHierarchyNodeExtensions.)
Public Extension MethodGetParentNodes
Gets the parent nodes of a node, up to the root. The nodes are ordered, starting from the direct parent to the root.
(Defined by IHierarchyNodeExtensions.)
Top
Remarks

HierarchyNode is used to store hierarchy nodes when the nodes themselves cannot (or it is not desired to) be represented by entity object. Implementations of IHierarchyNodeProvider also typically create an instance of HierarchyNode in order to implement the interface.

HierarchyNode works as a typical hierarchy node, calling the Hierarchy methods for almost all of its functionality.

See Also