/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.nanos.auth',
  name: 'Country',

  documentation: 'Country information.',

  ids: ['code'],

  properties: [
    {
      class: 'String',
      name: 'code',
      documentation: 'ISO 3166-1 alpha-2 Country codes.'
    },
    {
      class: 'String',
      name: 'iso31661Code',
      documentation: 'ISO 3166-1 alpha-3 country codes.'
    },
    {
      class: 'String',
      name: 'name',
      documentation: 'Country name.'
    },
    {
      class: 'StringArray',
      name: 'alternativeNames'
    }
  ],
  methods: [{
    name: 'toString',
    returns: 'String',
    javaReturns: 'String',
    code: function() {
      return 'Country: ' + this.code + ', ' + this.name; 
    },
    javaCode: `
      return "{ code:" + this.getCode() + ", name:" + this.getName() + " }";
    `
  }]
});

@@ -422,24 +422,49 @@
 31661Code',%0A
+      label: 'ISO Code',%0A
       docume
@@ -849,17 +849,16 @@
 is.name;
- 
 %0A    %7D,%0A

Update Country isocode label.