com.opengamma.sdk.margin.Ccp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-margin Show documentation
Show all versions of sdk-margin Show documentation
OpenGamma SDK - Provides access to the Margin service
/*
* 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);
}
}