.isValidCountryCode()
Table of contents
- 1. Description of the method
- 2.
- 3. Example
Description of the method
Description: | .isValidCountryCode() method checks if the given country code is valid based on the list that can be found here: (http://www.iso.org/iso/country_names..._code_elements). |
Available for: | string |
Parameters: | - |
Return type: | boolean |
Example
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.
<PstlAdr> |
The other snippet below however would not pass this check.
<PstlAdr> |