/*
 * Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.sdk.margin;

import java.util.Locale;

import org.joda.convert.FromString;
import org.joda.convert.ToString;

/**
 * Represents a CCP.
 */
public enum Ccp {

  /** Eurex. */
  EUREX,
  /** LCH. */
  LCH,
  /** CME. */
  CME,
  /** SIMM. */
  SIMM,
  /** JSCC. */
  JSCC,
  /** CME_SPAN. */
  CME_SPAN;

  @FromString
  public static final Ccp of(String str) {
    return valueOf(str.toUpperCase(Locale.ENGLISH));
  }

  @Override
  @ToString
  public String toString() {
    return super.toString().toLowerCase(Locale.ENGLISH);
  }

}

@@ -356,16 +356,45 @@
 %0A  LCH,%0A
+  /** LCH CDS. */%0A  LCH_CDS,%0A
   /** CM

Add LCH_CDS ccp (#72)