This project has moved and is read-only. For the latest updates, please go here.

<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 object Any string value that has not been used elsewhere in the XML file
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 for details on what operators can be used with each attribute type
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.

Last edited Sep 21, 2013 at 3:18 AM by ryannewington, version 3