| Total Complexity | 1 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 11 | class SimpleCondition(Condition): |
||
| 12 | """ |
||
| 13 | A simple condition matches a single field in the row against an expression. |
||
| 14 | """ |
||
| 15 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 16 | def __init__(self, field, expression): |
||
| 17 | """ |
||
| 18 | Object contructor. |
||
| 19 | |||
| 20 | :param str field: The name of the field in the row that must be match against the expression. |
||
| 21 | :param str expression: The expression. |
||
| 22 | """ |
||
| 23 | self._field = field |
||
| 24 | """ |
||
| 25 | The name of the field in the row that must be match against the glob. |
||
| 26 | |||
| 27 | :type str: |
||
| 28 | """ |
||
| 29 | |||
| 30 | self._expression = expression |
||
| 31 | """ |
||
| 32 | The expression. |
||
| 33 | |||
| 34 | :type str: |
||
| 35 | """ |
||
| 36 | |||
| 38 |