-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathOperation.cs
103 lines (89 loc) · 3.35 KB
/
Operation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
namespace Microsoft.CST.OAT
{
/// <summary>
/// Operations available for Analysis rules.
/// </summary>
public enum Operation
{
/// <summary>
/// Invalid Operation
/// </summary>
NoOperation,
/// <summary>
/// Specifies that a custom operation has been specified
/// </summary>
Custom,
/// <summary>
/// Generates regular expressions from the Data list provided and tests them against the specified
/// field. If any match it is a success.
/// </summary>
Regex,
/// <summary>
/// Checks that any value in the Data list or DictData dictionary have a match in the specified
/// field's object as appropriate.
/// </summary>
Equals,
/// <summary>
/// Checks whether any of the specified fields values when parsed as an int is less than first value in
/// the Data list as Parsed as an int
/// </summary>
LessThan,
/// <summary>
/// Checks whether any of the specified fields values when parsed as an int is greater than first value in
/// the Data list as Parsed as an int
/// </summary>
GreaterThan,
/// <summary>
/// Checks if the specified fields values contain all of the data in the Data list or DictData
/// dictionary as appropriate for the field.
/// </summary>
Contains,
/// <summary>
/// Checks if the specified field was modified between the two runs.
/// </summary>
WasModified,
/// <summary>
/// Checks if the specified field ends with any of the strings in the Data list.
/// </summary>
EndsWith,
/// <summary>
/// Checks if the specified field starts with any of the strings in the Data list.
/// </summary>
StartsWith,
/// <summary>
/// Checks if the specified fields values contain any of the data in the Data list or DictData
/// dictionary as appropriate for the field.
/// </summary>
ContainsAny,
/// <summary>
/// Checks if the specified field is null in both states.
/// </summary>
IsNull,
/// <summary>
/// Checks if the specified field is true in either state.
/// </summary>
IsTrue,
/// <summary>
/// Checks if the specified field, as parsed as time, is before the time specified in the first
/// entry of the Data list
/// </summary>
IsBefore,
/// <summary>
/// Checks if the specified field, as parsed as time, is after the time specified in the first
/// entry of the Data list
/// </summary>
IsAfter,
/// <summary>
/// Checks if the specified field, as parsed as time, is before DateTime.Now.
/// </summary>
IsExpired,
/// <summary>
/// Checks if the field, if a dictionary, contains the specified key
/// </summary>
ContainsKey,
/// <summary>
/// Compiles and runs the provided script.
/// </summary>
Script
}
}