12 | | After including/excluding a class, the [wiki:ClassTreeMask] is scanned for useless rules. If you include the [wiki:BaseObject] and include a subclass of [wiki:BaseObject] too, this brings no new information, so the inclusion-rule of the subclass can be discarded. Only rules that change the state are saved. You can turn of this cleanup by setting the ''clean'' flag to false. '''Warning''': This could change the meaning of your mask when you add further rules with ''overwrite'' set to false. If, in our example, the subclass of [wiki:BaseObject] was included without ''clean'' and afterward you exclude the [wiki:BaseObject] without ''overwrite'', the subclass stays included. You'll find some examples for this in the corresponding section of this page. |
| 13 | After including/excluding a class, the !ClassTreeMask is scanned for useless rules. If you include the [wiki:BaseObject] and include a subclass of [wiki:BaseObject] too, this brings no new information, so the inclusion-rule of the subclass can be discarded. Only rules that change the state are saved. You can turn of this cleanup by setting the ''clean'' flag to false. '''Warning''': This could change the meaning of your mask when you add further rules with ''overwrite'' set to false. If, in our example, the subclass of [wiki:BaseObject] was included without ''clean'' and afterward you exclude the [wiki:BaseObject] without ''overwrite'', the subclass stays included. You'll find some examples for this in the corresponding section of this page. |
20 | | * '''Branches''': |
21 | | * '''include('''''class''''', '''''overwrite''''', '''''clean''''')''': Includes ''class'' and all following classes. If ''overwrite'' is false, only classes that weren't explicitly excluded previously are included (default is true). If ''clean'' is true, only relevant rules stay in the branch (default is true). |
22 | | * '''exclude('''''class''''', '''''overwrite''''', '''''clean''''')''': Excludes ''class'' and all following classes. If ''overwrite'' is false, only classes that weren't explicitly included previously are excluded (default is true). If ''clean'' is true, only relevant rules stay in the branch (default is true). |
23 | | |
24 | | * '''Single classes''': |
25 | | * '''includeSingle('''''class''''', '''''clean''''')''': Includes ''class'' without changing the rule for following classes. If ''clean'' is true, only relevant rules stay in the branch (default is true). |
26 | | * '''excludeSingle('''''class''''', '''''clean''''')''': Excludes ''class'' without changing the rule for following classes. If ''clean'' is true, only relevant rules stay in the branch (default is true). |
27 | | |
28 | | * '''Tree''': |
29 | | * '''clean()''': Cleans the [wiki:ClassTreeMask] by droping all useless rules, where "useless" means: They add no new information to the mask (because a rule applied to a parent already sais the same). |
30 | | * '''reset()''': Deletes all rules and includes everything. |
31 | | |
32 | | == Operators == |
| 21 | === Branches === |
| 22 | * '''include('''''class''''', '''''overwrite''''', '''''clean''''')''': Includes ''class'' and all following classes. If ''overwrite'' is false, only classes that weren't explicitly excluded previously are included (default is true). If ''clean'' is true, only relevant rules stay in the branch (default is true). |
| 23 | * '''exclude('''''class''''', '''''overwrite''''', '''''clean''''')''': Excludes ''class'' and all following classes. If ''overwrite'' is false, only classes that weren't explicitly included previously are excluded (default is true). If ''clean'' is true, only relevant rules stay in the branch (default is true). |
| 24 | |
| 25 | === Single classes === |
| 26 | * '''includeSingle('''''class''''', '''''clean''''')''': Includes ''class'' without changing the rule for following classes. If ''clean'' is true, only relevant rules stay in the branch (default is true). |
| 27 | * '''excludeSingle('''''class''''', '''''clean''''')''': Excludes ''class'' without changing the rule for following classes. If ''clean'' is true, only relevant rules stay in the branch (default is true). |
| 28 | |
| 29 | === Tree === |
| 30 | * '''clean()''': Cleans the !ClassTreeMask by droping all useless rules, where "useless" means: They add no new information to the mask (because a rule applied to a parent already sais the same). |
| 31 | * '''reset()''': Deletes all rules and includes everything. |
| 32 | |
| 33 | === Operators === |