Page last modified 12:43, 29 May 2018 by villes

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

    Table of contents

    Description of the method


    Description: .isValidCountryCode() method checks if the given country code is valid based on the list that can be found here:  (
    Available for: string
    Parameters: -
    Return type: boolean



    Context: HeaderType1
    OCL: self.PstlAdr.Ctry.isValidCountryCode()
    Description: The example rule checks if the given country code is valid.


    The XML snippet below would pass this check.


    The other snippet below however would not pass this check.