Package com.opengamma.strata.product
Class ProductType
- java.lang.Object
-
- com.opengamma.strata.collect.TypedString<ProductType>
-
- com.opengamma.strata.product.ProductType
-
- All Implemented Interfaces:
Described
,Named
,Serializable
,Comparable<ProductType>
public final class ProductType extends TypedString<ProductType> implements Described
The type of a portfolio item.This provides a classification of the trade or position.
- See Also:
- Serialized Form
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Gets the human-readable description of the type.static ProductType
of(String name)
Obtains an instance from the specified name.
-
-
-
Field Detail
-
BULLET_PAYMENT
public static final ProductType BULLET_PAYMENT
-
BILL
public static final ProductType BILL
ABill
.
-
BOND
public static final ProductType BOND
-
BOND_FUTURE
public static final ProductType BOND_FUTURE
ABondFuture
.
-
BOND_FUTURE_OPTION
public static final ProductType BOND_FUTURE_OPTION
-
CDS
public static final ProductType CDS
ACds
.
-
CDS_INDEX
public static final ProductType CDS_INDEX
ACdsIndex
.
-
CMS
public static final ProductType CMS
ACms
.
-
DSF
public static final ProductType DSF
ADsf
.
-
FRA
public static final ProductType FRA
AFra
.
-
FX_NDF
public static final ProductType FX_NDF
AFxNdf
.
-
FX_SINGLE_BARRIER_OPTION
public static final ProductType FX_SINGLE_BARRIER_OPTION
-
FX_SINGLE
public static final ProductType FX_SINGLE
AFxSingle
.
-
FX_SWAP
public static final ProductType FX_SWAP
AFxSwap
.
-
FX_VANILLA_OPTION
public static final ProductType FX_VANILLA_OPTION
-
IBOR_CAP_FLOOR
public static final ProductType IBOR_CAP_FLOOR
AIborCapFloor
.
-
IBOR_FUTURE
public static final ProductType IBOR_FUTURE
AIborFuture
.
-
IBOR_FUTURE_OPTION
public static final ProductType IBOR_FUTURE_OPTION
-
OVERNIGHT_FUTURE
public static final ProductType OVERNIGHT_FUTURE
-
SENSITIVITIES
public static final ProductType SENSITIVITIES
A representation based on sensitivities.
-
SWAP
public static final ProductType SWAP
ASwap
.
-
SWAPTION
public static final ProductType SWAPTION
ASwaption
.
-
TERM_DEPOSIT
public static final ProductType TERM_DEPOSIT
ATermDeposit
.
-
ETD_FUTURE
public static final ProductType ETD_FUTURE
-
ETD_OPTION
public static final ProductType ETD_OPTION
-
SECURITY
public static final ProductType SECURITY
ASecurity
, used where the kind of security is not known.
-
CALIBRATION
public static final ProductType CALIBRATION
A product only used for calibration.
-
OTHER
public static final ProductType OTHER
Another kind of product, details not known.
-
-
Method Detail
-
of
public static ProductType of(String name)
Obtains an instance from the specified name.The name may contain any character, but must not be empty.
- Parameters:
name
- the name- Returns:
- a type instance with the specified name
-
getDescription
public String getDescription()
Gets the human-readable description of the type.- Specified by:
getDescription
in interfaceDescribed
- Returns:
- the description
-
-