Class QualityStatementNode
Represents a single QualityStatementItem in a hierarchy of quality statement items.
Inherited Members
Namespace: Algenta.Colectica.Model.Ddi.Utility
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class QualityStatementNode : NotificationObject
Constructors
QualityStatementNode(QualityStatementItem)
Initializes a new instance of the QualityStatementNode class.
Declaration
public QualityStatementNode(QualityStatementItem item)
Parameters
Type | Name | Description |
---|---|---|
QualityStatementItem | item | The top level quality statement item. |
Properties
Children
Gets the child quality statement items in the hierarchy.
Declaration
public ObservableCollection<QualityStatementNode> Children { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<QualityStatementNode> |
Header
Gets a display label for the node.
Declaration
public string Header { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsEnabled
Gets or sets a value indicating whether the quality statement item can be edited in a user interface.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsExpanded
Gets or sets a value indicating whether the quality statement item is expanded in a user interface.
Declaration
public bool IsExpanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsMissingInformation
Gets a value indicating whether the quality statement item, or any of its children, do not have content.
Declaration
public bool IsMissingInformation { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSelected
Gets or sets a value indicating whether the quality statement item can be selected in a user interface.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Gets or sets the quality statement item represented by this node.
Declaration
public QualityStatementItem Item { get; set; }
Property Value
Type | Description |
---|---|
QualityStatementItem |
Parent
Gets or sets the node of the quality statement item above this item in the hierarchy.
Declaration
public QualityStatementNode Parent { get; }
Property Value
Type | Description |
---|---|
QualityStatementNode |
Weight
Gets a weight that determines the order in which the node is sorted.
Declaration
public int ? Weight { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Methods
GetHierarchy(QualityStatement)
Gets the complete hierarchy formed by the specified QualityStatement.
Declaration
public static List<QualityStatementNode> GetHierarchy(QualityStatement qualityStatement)
Parameters
Type | Name | Description |
---|---|---|
QualityStatement | qualityStatement | The quality statement. |
Returns
Type | Description |
---|---|
List<QualityStatementNode> | A list of quality statement item nodes that appear at the root of the hierarchy. |
SortChildrenIfWeighted()
Sorts the children of this node, if any of the children have a weight set.
Declaration
public void SortChildrenIfWeighted()