All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdm.legaldocumentation.common.ContractualDefinitionsEnum Maven / Gradle / Ivy

There is a newer version: 6.0.0-dev.89
Show newest version
package cdm.legaldocumentation.common;

import cdm.legaldocumentation.common.ContractualDefinitionsEnum;
import com.rosetta.model.lib.annotations.RosettaEnum;
import com.rosetta.model.lib.annotations.RosettaEnumValue;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;


/**
 * The enumerated values to specify a set of standard contract definitions relevant to the transaction.
 * @version 6.0.0-dev.72
 */
@RosettaEnum("ContractualDefinitionsEnum")
public enum ContractualDefinitionsEnum {

	/**
	 * ISDA 1991 Interest Rate Definitions
	 */
	@RosettaEnumValue(value = "ISDA1991InterestRate") 
	ISDA_1991_INTEREST_RATE("ISDA1991InterestRate", null),
	
	/**
	 * ISDA 1993 Commodity Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA1993CommodityDerivatives") 
	ISDA_1993_COMMODITY_DERIVATIVES("ISDA1993CommodityDerivatives", null),
	
	/**
	 * ISDA 1996 Equity Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA1996EquityDerivatives") 
	ISDA_1996_EQUITY_DERIVATIVES("ISDA1996EquityDerivatives", null),
	
	/**
	 * ISDA 1997 Bullion Definitions
	 */
	@RosettaEnumValue(value = "ISDA1997Bullion") 
	ISDA_1997_BULLION("ISDA1997Bullion", null),
	
	/**
	 * ISDA 1997 Government Bond Option Definitions
	 */
	@RosettaEnumValue(value = "ISDA1997GovernmentBondOption") 
	ISDA_1997_GOVERNMENT_BOND_OPTION("ISDA1997GovernmentBondOption", null),
	
	/**
	 * ISDA 1998 FX and Currency Option Definitions
	 */
	@RosettaEnumValue(value = "ISDA1998FxAndCurrencyOption") 
	ISDA_1998_FX_AND_CURRENCY_OPTION("ISDA1998FxAndCurrencyOption", null),
	
	/**
	 * ISDA 1999 Credit Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA1999CreditDerivatives") 
	ISDA_1999_CREDIT_DERIVATIVES("ISDA1999CreditDerivatives", null),
	
	/**
	 * ISDA 2000 Definitions
	 */
	@RosettaEnumValue(value = "ISDA2000") 
	ISDA2000("ISDA2000", null),
	
	/**
	 * ISDA 2002 Equity Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA2002EquityDerivatives") 
	ISDA_2002_EQUITY_DERIVATIVES("ISDA2002EquityDerivatives", null),
	
	/**
	 * ISDA 2003 Credit Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA2003CreditDerivatives") 
	ISDA_2003_CREDIT_DERIVATIVES("ISDA2003CreditDerivatives", null),
	
	/**
	 * ISDA 2004 Novation Definitions
	 */
	@RosettaEnumValue(value = "ISDA2004Novation") 
	ISDA_2004_NOVATION("ISDA2004Novation", null),
	
	/**
	 * ISDA 2005 Commodity Definitions
	 */
	@RosettaEnumValue(value = "ISDA2005Commodity") 
	ISDA_2005_COMMODITY("ISDA2005Commodity", null),
	
	/**
	 * ISDA 2006 Definitions
	 */
	@RosettaEnumValue(value = "ISDA2006") 
	ISDA2006("ISDA2006", null),
	
	/**
	 * ISDA 2006 Inflation Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA2006InflationDerivatives") 
	ISDA_2006_INFLATION_DERIVATIVES("ISDA2006InflationDerivatives", null),
	
	/**
	 * ISDA 2008 Inflation Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA2008InflationDerivatives") 
	ISDA_2008_INFLATION_DERIVATIVES("ISDA2008InflationDerivatives", null),
	
	/**
	 * ISDA 2011 Equity Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA2011EquityDerivatives") 
	ISDA_2011_EQUITY_DERIVATIVES("ISDA2011EquityDerivatives", null),
	
	/**
	 * ISDA 2014 Credit Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA2014CreditDerivatives") 
	ISDA_2014_CREDIT_DERIVATIVES("ISDA2014CreditDerivatives", null),
	
	/**
	 * ISDA 2021 Interest Rate Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA2021InterestRateDerivatives") 
	ISDA_2021_INTEREST_RATE_DERIVATIVES("ISDA2021InterestRateDerivatives", null),
	
	/**
	 * ISDA 2022 Verified Carbon Credit Transactions Definitions
	 */
	@RosettaEnumValue(value = "ISDA2022VerifiedCarbonCredit") 
	ISDA_2022_VERIFIED_CARBON_CREDIT("ISDA2022VerifiedCarbonCredit", null),
	
	/**
	 * ISDA 2023 Digital Asset Derivatives Definitions
	 */
	@RosettaEnumValue(value = "ISDA2023DigitalAssetDerivatives") 
	ISDA_2023_DIGITAL_ASSET_DERIVATIVES("ISDA2023DigitalAssetDerivatives", null)
;
	private static Map values;
	static {
        Map map = new ConcurrentHashMap<>();
		for (ContractualDefinitionsEnum instance : ContractualDefinitionsEnum.values()) {
			map.put(instance.toDisplayString(), instance);
		}
		values = Collections.unmodifiableMap(map);
    }

	private final String rosettaName;
	private final String displayName;

	ContractualDefinitionsEnum(String rosettaName, String displayName) {
		this.rosettaName = rosettaName;
		this.displayName = displayName;
	}

	public static ContractualDefinitionsEnum fromDisplayName(String name) {
		ContractualDefinitionsEnum value = values.get(name);
		if (value == null) {
			throw new IllegalArgumentException("No enum constant with display name \"" + name + "\".");
		}
		return value;
	}

	@Override
	public String toString() {
		return toDisplayString();
	}

	public String toDisplayString() {
		return displayName != null ?  displayName : rosettaName;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy