MacroRuleTree Class |
Namespace: CMS.MacroEngine
[SerializableAttribute] public class MacroRuleTree
The MacroRuleTree type exposes the following members.
Name | Description | |
---|---|---|
![]() | MacroRuleTree |
Name | Description | |
---|---|---|
![]() | Children |
Gets or sets the child rules.
|
![]() | HasPreviousSibling |
Returns true if group has a previous sibling node.
|
![]() | IDPath |
Returns IDPath of the group.
|
![]() | IsLeaf |
Returns true if group is a leaf (expression).
|
![]() | Level |
Returns level of the group.
|
![]() | Operator |
Gets or sets operator of the rule.
|
![]() | Parameters |
Gets or sets the parameters of the rule (null for internal nodes).
|
![]() | Parent |
Gets or sets the parent.
|
![]() | Position |
Gets or sets the relative position of the rule within the parent group.
|
![]() | RuleCondition |
Gets or sets the associated rule K# condition.
|
![]() | RuleName |
Gets or sets the associated rule name.
|
![]() | RuleParameters |
Gets or sets the associated rule parameters xml definition.
|
![]() | RuleText |
Gets or sets the associated rule text.
|
Name | Description | |
---|---|---|
![]() | Accept |
Accepts an action that gets executed on the whole tree structure.
|
![]() | AddRule |
Adds a new rule as a child of current node. Inserts the rule to the specified position.
|
![]() | AutoIndent |
Performs the autoindentation of the expression (according to priority of 'or' and 'and' operators).
|
![]() | GetCondition |
Returns the condition in K# representing this rule.
|
![]() ![]() | GetParameterText |
Processes the text of parameter (handles multivalue parameters separated with new line).
|
![]() | GetRoot |
Returns the root of the rule tree.
|
![]() ![]() | GetRuleCondition |
Returns rule as a human readable sentence. If the expression is Rule(...) method than it uses XML for the rule, otherwise returns expression as it is.
|
![]() ![]() | GetRuleText(MacroRuleTree, Boolean, FuncObject, Object) |
Returns rule as a human readable sentence.
|
![]() ![]() | GetRuleText(String, Boolean, Boolean, FuncObject, Object) |
Returns rule as a human readable sentence. If the expression is Rule(...) method than it uses XML for the rule, otherwise returns expression as it is.
|
![]() | GetXML |
Returns xml of the rule designer (to store the layout and parameters).
|
![]() | GetXMLInternal |
Returns xml of the rule designer (to store the layout and parameters).
|
![]() | Indent |
Indents the node with one level.
|
![]() | LoadFromXml |
Loads MacroRuleTree from xml definition.
|
![]() | MoveNode |
Moves the group to given location.
|
![]() ![]() | RemoveBrackets |
Removes brackets which are not needed.
|
![]() | RemoveNode(Int32) |
Adds given group as a new child.
|
![]() | RemoveNode(Int32, Boolean) |
Adds given group as a new child.
|
![]() | ResetPositions |
Sets correct positions according to current state.
|
![]() | SetParameterValue |
Sets the parameter value.
|
![]() | Unindent |
Unindents the node with one level.
|
![]() | ValidateParameters |
Returns list of rules which contain required parameters with empty value.
|