Page last modified 07:38, 17 Aug 2015 by juhako

.toLower() Redirected from User Guides/myXML/5: OCL Rules/Available methods for OCL base types/.toLower()

    Table of contents

    Description of the method

     

    Description: .toLower() method converts string to lower case.
    Available for: string
    Parameters:  -
    Return type: string

    Example

     

    Context: HeaderType1
    OCL: self.Id.toLower() = "idcontent"
    Description: The example rule converts the value of <Id> element to lower case and compares it to "idcontent".

     

    The XML snippet below would pass this check.

    <Id>IdContent</Id>

    The other snippet below however would not pass this check as it contains space between id and content.

    <Id>Id Content</Id>

     

    Attached you can find example schema and files which you can use for testing.

    Menu