N1 Service Provisioning System 4.1 Reference Guide

matches Boolean Operator

A boolean operator used to determine if a particular value matches a pattern. It contains attributes "value", "pattern" and "exact", and has no child elements. It evaluates to true if and only if value of the "value" attribute matches the glob-style pattern contained in the value of the "pattern" attribute. If "exact" is true, then they must be case-sensitive match, otherwise they must be case-insensitive match.

matches Boolean Operator Attributes

Name 

Type 

Required 

Configurable 

Description 

value 

string 

Yes 

Yes 

The value to be matched against the pattern.  

pattern 

string 

Yes 

Yes 

The pattern that should be matched. 

exact 

boolean 

No 

No 

True if a case-sensitive match should be performed, false otherwise. Defaults to false. 

matches Boolean Operator Examples

Element 

Result 

<matches value="True" pattern="true"/> 

true 

<matches value="True" pattern="t*"/> 

true 

<matches value="blue" pattern="*u"/> 

false 

<matches value="True" pattern="t?ue"/> 

true 

<matches value="Tue" pattern="t?ue"/> 

false 

<matches value="True" pattern="t*" exact="true"/> 

false 

<matches value=":[var1]" pattern=":[var2]"/> 

true if the value of var1 matches the pattern of var2.