Page last modified 15:05, 6 Mar 2019 by villes

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

    Table of contents

    Description of the method

     

    Description: oclIsUndefined() method checks if the given value is undefined ie null or invalid.
    Available for: any
    Parameters: -
    Return type: boolean

     

    Example

    Context: HeaderType1
    OCL: self.Dt.oclIsUndefined()
    Description: The example rule checks if the value of <Dt> is undefined.

     

    The XML snippet below would pass this check.

    <Dt>null</Dt>

    The other snippet below however would not pass this check.

    <Dt>28.05.2018</Dt>

    Menu