Package com.opengamma.master.region

Examples of com.opengamma.master.region.ManageableRegion.addExternalId()


        region.setClassification(classification);
        region.setName(name);
        region.setFullName(fullName);
        if (countryISO != null) {
          region.setCountry(Country.of(countryISO));
          region.addExternalId(ExternalSchemes.financialRegionId(countryISO))// TODO: looks odd
        }
        if (currencyISO != null) {
          region.setCurrency(Currency.of(currencyISO));
        }
        if (sovereignity != null) {
View Full Code Here


            countryISO.equals("XZ") || "=".equals(type) || required.remove(unlocode) == false) {
          continue;
        }
       
        ManageableRegion region = createRegion(name, fullName, countryISO);
        region.addExternalId(ExternalSchemes.unLocode20102RegionId(unlocode));
        regions.add(region);
      }
    } catch (Exception ex) {
      String detail = (name != null ? " while processing " + name : "");
      throw new OpenGammaRuntimeException("Unable to read UN/LOCODEs" + detail, ex);
View Full Code Here

        region.addExternalId(ExternalSchemes.coppClarkRegionId(unLocode));
      }
    }
    for (Entry<String, String> entry : COPP_CLARK_ADDITIONS.entrySet()) {
      ManageableRegion region = createRegion(entry.getValue(), entry.getValue(), entry.getKey().substring(0, 2));
      region.addExternalId(ExternalSchemes.coppClarkRegionId(entry.getKey()));
      regions.add(region);
    }
  }

  private void store(Set<ManageableRegion> regions) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.