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

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

    Table of contents

    Description of the method

     

    Description: .isValidIBAN() method checks the given IBANs structure based on the country code and the correctness of the check control sum.
    Available for: string
    Parameters: -
    Return type: boolean

     

    Example

    Context: TransacitonType1
    OCL: self.Debtor.IBAN.isValidIBAN()
    Description: The example rule checks if the given IBAN is valid.

     

    The XML snippet below would pass this check.

    <Debtor>
        <IBAN>FI211345600000785
    </IBAN>

    </Debtor>

    The other snippet below however would not pass this check.

    <Debtor>
        <IBAN>INVALIDIBAN123456</IBAN>
    </Debtor>

    Menu