Class RuleDataInstance
- class ooodev.dialog.search.tree_search.RuleDataInstance[source]
Rule for matching a node’s data type with a specified type.
- is_match(node, match_value)[source]
Gets the node’s data value and compares it with the match value for instance match.
- Parameters:
node (XTreeNode) – Tree node to check.
match_value (Any) – Value to match. Must be a string to match.
- Returns:
True if the node’s data value matches the match value; Otherwise, False.
- Return type:
bool