Page last modified 16:00, 25 May 2018 by villes

.toString()

    Table of contents

    Version as of 04:33, 14 Oct 2019

    to this version.

    Return to Version archive.

    View current version

    Description of the method

     

    Description: .toString() method converts the given value to a string format.
    Available for: any
    Parameters: -
    Return type: string

     

    Example

    Context: HeaderType1
    OCL: self.Id.toString() = '1234'
    Description: The example rule checks if the Id number of <Id> matches the string '1234', when converted to a string.

     

    The XML snippet below would pass this check.

    <Id>1234</Id>

    The other snippet below however would not pass this check.

    <Id>2018</Id>

    Menu