.equalsIgnoreCase()
Table of contents
Description of the method
Description: | equalsIgnoreCase method compares string value to another string given as a parameter. The method returns true if the strings have same lenght and the corresponding characters in the strings are equal ignoring case. |
Available for: | string |
Parameters: | string |
Return type: | boolean |
Example
Context: | HeaderType1 |
OCL: | self.Id.equalsIgnoreCase('idcontent') |
Description: | The example rule executes |
The XML snippet below would pass this check, the character content is equal to "idcontent" when case is ignored.
<Id>IdContent</Id> |
The other snippet below however would not pass this check as the string is different length and the character content is not equal to "idcontent".
<Id>Content</Id> |
Attached you can find example schema and files which you can use for testing.