Class LinkTree.Node
Represents a node in the link tree.
public class LinkTree.Node
- Inheritance
-
LinkTree.Node
- Inherited Members
Properties
Arcrole
Gets the arcrole associated with the current edge, if available.
public string? Arcrole { get; }
Property Value
Children
Gets an enumerable collection of child nodes, ordered by their associated arc order.
public IEnumerable<LinkTree.Node> Children { get; }
Property Value
Remarks
The returned collection reflects the current set of child nodes and their order as defined by the underlying edges. The enumeration is deferred and will reflect any changes to the underlying data at the time of enumeration.
Distance
Gets the distance from the root node (root is0).
public int Distance { get; }
Property Value
EdgeFromParent
Gets the edge from the parent node to this node, if any.
public LinkTree.Edge? EdgeFromParent { get; init; }
Property Value
Order
Gets the order value associated with the arc from the parent edge, if available.
public double? Order { get; }
Property Value
Remarks
Returns null if there is no parent edge or if the arc does not have an order value defined.
Parent
Gets the parent node, or null if this is a root node.
public LinkTree.Node? Parent { get; }
Property Value
PreferredLabel
Gets the preferred label associated with the edge from the parent, if available.
public string? PreferredLabel { get; }
Property Value
Resource
Gets the resource (element, label, etc.) represented by this node.
public XbrlItem Resource { get; init; }
Property Value
Tree
Gets the link tree to which this node belongs.
public LinkTree Tree { get; init; }
Property Value
Weight
Gets the weight of the edge from the parent node, if available.
public int? Weight { get; }
Property Value
- int?
Remarks
If the node does not have a parent or the edge does not specify a weight, this property returns null.