Skip to content

rule SingleValuedAttributeValueRule

Ryan Newington edited this page Jun 6, 2016 · 1 revision

<rule xsi:type="sshma:rule-SingleValuedAttributeValueRule"> element

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

Example

<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.

Clone this wiki locally