-
Notifications
You must be signed in to change notification settings - Fork 2
rule SingleValuedAttributeValueRule
Ryan Newington edited this page Jun 6, 2016
·
1 revision
The SingleValuedAttributeValueRule type is used to determine if the value of a single-valued attribute meets a given criteria.
The <rule>
element must contain the following attributes;
XML Attribute Name | Description | Allowed Values |
---|---|---|
xsi:type | The type of rule | This value must be sshma:rule-SingleValuedAttributeValueRule
|
id | The unique ID for the rule. This is used to reference the rule in the [[command | commands]] object |
attribute | The attribute to evaluate | Any attribute defined in the schema that is present on the class of object being evaluated |
operator | The evaluation operator | See [[allowed value operators |
value | The expected value | The string representation of the expected value |
<rule xsi:type="sshma:rule-SingleValuedAttributeValueRule" id="GidLessThan500" attribute="gid" operator="LessThan" value="500"/>
The example shown above passes evaluation if the gid
attribute is less than 500.