ExternalSchemes { public static ExternalId ricSecurityId(final String code) { ArgumentChecker.notNull(code, "code"); if (code.length() == 0) { throw new IllegalArgumentException("RIC code is invalid: " + code); } return ExternalId.of(RIC, code); } protected  ExternalSchemes(); static ExternalId windowsUserId(String windowsUserId); static ExternalId bloombergUuidUserId(final String uuid); static ExternalId bloombergEmrsUserId(final String emrsid); static ExternalId isinSecurityId(final String code); static ExternalId cusipSecurityId(final String code); static ExternalId sedol1SecurityId(final String code); static ExternalId bloombergBuidSecurityId(final String code); static ExternalId bloombergTickerSecurityId(final String ticker); static ExternalId syntheticSecurityId(final String ticker); static ExternalId bloombergTCMSecurityId(final String tickerWithoutSector, final String coupon, final String maturity, final String marketSector); static ExternalId ricSecurityId(final String code); static ExternalId activFeedTickerSecurityId(final String ticker); static ExternalId tullettPrebonSecurityId(final String ticker); static ExternalId icapSecurityId(final String ticker); static ExternalId gmiSecurityId(final String ticker); static ExternalId markItRedCode(final String redcode); static ExternalId isda(final String isdaName); static ExternalId financialRegionId(final String code); static ExternalId timeZoneRegionId(final ZoneId zone); static ExternalId coppClarkRegionId(final String locode); static ExternalId unLocode20102RegionId(final String locode); static ExternalId currencyRegionId(final Currency currency); static ExternalId countryRegionId(final Country country); static ExternalId isoMicExchangeId(final String code); static ExternalId isdaHoliday(final String code); static final ExternalScheme WINDOWS_USER_ID; static final ExternalScheme BLOOMBERG_UUID; static final ExternalScheme BLOOMBERG_EMRSID; static final ExternalScheme ISIN; static final ExternalScheme CUSIP; static final ExternalScheme CUSIP_ENTITY_STUB; static final ExternalScheme SEDOL1; static final ExternalScheme BLOOMBERG_BUID; static final ExternalScheme BLOOMBERG_BUID_WEAK; static final ExternalScheme BLOOMBERG_TICKER; static final ExternalScheme BLOOMBERG_TICKER_WEAK; @Deprecated
  static final ExternalScheme BLOOMBERG_TCM; static final ExternalScheme BLOOMBERG_CONVENTION_NAME; static final ExternalScheme BLOOMBERG_INDEX_FAMILY; static final ExternalScheme RIC; static final ExternalScheme ACTIVFEED_TICKER; static final ExternalScheme OG_SYNTHETIC_TICKER; static final ExternalScheme SURF; static final ExternalScheme ICAP; static final ExternalScheme GMI; static final ExternalScheme ISDA; static final ExternalScheme MARKIT_RED_CODE; static final ExternalScheme ISO_COUNTRY_ALPHA2; static final ExternalScheme ISO_CURRENCY_ALPHA3; static final ExternalScheme COPP_CLARK_LOCODE; static final ExternalScheme UN_LOCODE_2010_2; static final ExternalScheme TZDB_TIME_ZONE; static final ExternalScheme FINANCIAL; static final ExternalScheme ISO_MIC; static final ExternalScheme ISDA_HOLIDAY; }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_ric_null() { ExternalSchemes.ricSecurityId(null); }