Redirected from User Guides/User guide for OCL rules in XMLdation environment/Available methods for OCL base types/.toInteger().toInteger()
Description of the method
|Description:||toInteger() converts the string into an integer value|
|OCL:||self.Id.toInteger() = 11 + 11|
|Description:||This rule attempts to convert Id into integer, and then compares it's value to the result of the arithmetic sum of the right side of expression|
The XML snippet below would pass this check.
The other snippet below however would not pass this check.