Page last modified 13:46, 29 May 2018 by villes

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

    Table of contents

    Description of the method

     

    Description: .isValidReference('FI') method checks if the given text is a valid Finnish reference. Method checks that the value is numeric and contains from 3 to 20 characters.
    Available for: string
    Parameters: -
    Return type: boolean

     

    Example

    Context: TransactionType1
    OCL: self.Amount.REF.isValidReference('FI')
    Description: The example rule checks if the given reference is valid.

     

    The XML snippet below would pass this check.

    <Amount>
        <REF>1234561</REF>
    </Amount>

    The other snippet below however would not pass this check.

    <Amount>
        <REF>AA123123</REF>
    </Amount>

    Menu