Class RuleTextSensitive

class ooodev.dialog.search.tree_search.RuleTextSensitive[source]

Rule for matching a node’s text value with a case-sensitive string.

is_match(node, match_value)[source]

Gets the node’s text value and compares it with the match value.

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 text value matches the match value; Otherwise, False.

Return type:

bool