Redirected from User Guides/myXML/User guide for OCL rules in XMLdation environment/Available methods for OCL base types/.equalsIgnoreCase().equalsIgnoreCase()
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.|
|Description:||The example rule executes|
The XML snippet below would pass this check, the character content is equal to "idcontent" when case is ignored.
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".
Attached you can find example schema and files which you can use for testing.