
Public Types | |
| enum | Result { Allow, Deny } |
| Result of applying input value to policy rule. More... | |
| enum | Operation { Equal, Not_Equal, Greater, Less, Greater_Equal, Less_Equal, RegExp, RegExp_IgnoreCase, None, Add, Delete, Modify, NameChange } |
| Operation type to perform on policy rules. More... | |
Public Member Functions | |
| Rule (object operand, Operation operation, Result result) | |
| Initializes the object with the specified parameters. | |
| Rule (object rule) | |
| Initializes the object with the specified rule document. | |
| Rule (string rule) | |
| Initializes the object with the specified rule string. | |
| virtual void | GetObjectData (SerializationInfo info, StreamingContext context) |
| Called by the ISerializable interface to serialize a Rule object. | |
| XmlDocument | ToXml () |
| Converts the value of this instance to an XML document. | |
| Result | Apply (object input) |
| Applies the rule to the input object and returns the result. | |
| override bool | Equals (object rule) |
| Determines whether two Object instances are equal. | |
| override int | GetHashCode () |
| Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. | |
| override string | ToString () |
| Converts the value of this instance to its equivalent string. | |
Static Public Member Functions | |
| static bool | operator== (Rule rule1, Rule rule2) |
| Determines whether two Object instances are equal. | |
| static bool | operator!= (Rule rule1, Rule rule2) |
| Determines whether two Object instances are not equal. | |
Protected Member Functions | |
| Rule (SerializationInfo info, StreamingContext context) | |
| Special constructor used to deserialize a Rule object. | |
Properties | |
| bool | IsExclusion [get] |
| Gets whether this rule is an exclusion rule. | |
| bool | IsException [get] |
| Gets whether this rule is an exception rule. | |
| object | Operand [get, set] |
| Gets or sets the object that is used to match against the input object when the Apply method is called. | |
| Operation | RuleOperation [get, set] |
| Gets or sets the match type operation to perform between the input and operand. | |
| Result | RuleResult [get, set] |
| Gets or set the result to return when operation is true. | |
Result of applying input value to policy rule.
Operation type to perform on policy rules.
Initializes the object with the specified parameters.
| operand | Object that is used to match against the input object when the Apply method is called. The type of object must be one of the Simias.Syntax types. | |
| operation | Operation to perform between input and operand. | |
| result | Result to return when operation is true. |
| Simias::Policy::Rule::Rule | ( | object | rule | ) | [inline] |
Initializes the object with the specified rule document.
| rule | Xml document that contains a rule representation. |
| Simias::Policy::Rule::Rule | ( | string | rule | ) | [inline] |
Initializes the object with the specified rule string.
| rule | Xml document of string format that contains a rule representation. |
| Simias::Policy::Rule::Rule | ( | SerializationInfo | info, | |
| StreamingContext | context | |||
| ) | [inline, protected] |
Special constructor used to deserialize a Rule object.
| info | The SerializationInfo populated with the data. | |
| context | The source (see StreamingContext) for this serialization. |
| virtual void Simias::Policy::Rule::GetObjectData | ( | SerializationInfo | info, | |
| StreamingContext | context | |||
| ) | [inline, virtual] |
Called by the ISerializable interface to serialize a Rule object.
| info | The SerializationInfo to populate with data. | |
| context | The destination (see StreamingContext) for this serialization. |
| XmlDocument Simias::Policy::Rule::ToXml | ( | ) | [inline] |
Converts the value of this instance to an XML document.
Determines whether two Object instances are equal.
| rule1 | First object to compare. | |
| rule2 | Second object to compare. |
Determines whether two Object instances are not equal.
| rule1 | First object to compare. | |
| rule2 | Second object to compare. |
| Result Simias::Policy::Rule::Apply | ( | object | input | ) | [inline] |
Applies the rule to the input object and returns the result.
| input | Object to apply rule to. |
| override bool Simias::Policy::Rule::Equals | ( | object | rule | ) | [inline] |
Determines whether two Object instances are equal.
| rule | Object to compare to the current object. |
| override int Simias::Policy::Rule::GetHashCode | ( | ) | [inline] |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
| override string Simias::Policy::Rule::ToString | ( | ) | [inline] |
Converts the value of this instance to its equivalent string.
bool Simias::Policy::Rule::IsExclusion [get] |
Gets whether this rule is an exclusion rule.
bool Simias::Policy::Rule::IsException [get] |
Gets whether this rule is an exception rule.
object Simias::Policy::Rule::Operand [get, set] |
Gets or sets the object that is used to match against the input object when the Apply method is called.
Operation Simias::Policy::Rule::RuleOperation [get, set] |
Gets or sets the match type operation to perform between the input and operand.
Result Simias::Policy::Rule::RuleResult [get, set] |
Gets or set the result to return when operation is true.
1.5.6