3.1.4.1.3.44 t:ProtectionRuleType Complex Type

The ProtectionRuleType complex type specifies a single protection rule.

 <xs:complexType name="ProtectionRuleType">
   <xs:sequence>
     <xs:element name="Condition" type="t:ProtectionRuleConditionType" 
         minOccurs="1" maxOccurs="1"/>
     <xs:element name="Action" type="t:ProtectionRuleActionType" 
         minOccurs="1" maxOccurs="1"/>
   </xs:sequence>
   <xs:attribute name="Name" use="required">
     <xs:simpleType>
       <xs:restriction base="xs:string">
         <xs:minLength value="1"/>
       </xs:restriction>
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute name="UserOverridable" type="xs:boolean" use="required" />
   <xs:attribute name="Priority" use="required" >
     <xs:simpleType>
       <xs:restriction base="xs:int">
         <xs:minInclusive value="1"/>
       </xs:restriction>
     </xs:simpleType>
   </xs:attribute>
 </xs:complexType>

The following table lists the child elements of the ProtectionRuleType complex type.

Element

Type

Definition

Condition

t:ProtectionRuleConditionType (section 3.1.4.1.3.40)

Specifies the condition to be satisfied for the action part of the rule to be executed.

This element MUST be included if the ProtectionRuleType complex type is used.

Action

t:ProtectionRuleActionType (section 3.1.4.1.3.37)

Specifies the action to be executed if the condition part of the rule matches.

This element MUST be included if the ProtectionRuleType complex type is used.

The following table lists the attributes of the ProtectionRuleType complex type.

Attribute

Type

Definition

Name

xs:string ([XMLSCHEMA2] section 3.2.1)

Specifies the name of the rule.

This attribute MUST be included if the ProtectionRuleType complex type is used. This attribute value MUST contain a string of at least one character.

UserOverridable

xs:boolean ([XMLSCHEMA2] section 3.2.2)

Specifies whether the rule is mandatory. If the rule is mandatory, this attribute value MUST be false.

This attribute MUST be included if the ProtectionRuleType complex type is used.

Priority

xs:int ([XMLSCHEMA2] section 3.3.17)

Specifies the rule priority. The lower bound MUST be 1, which specifies the highest priority.

This attribute MUST be included if the ProtectionRuleType complex type is used. This attribute value MUST contain an integer value of at least 1.