|
SalesPoint v3.3 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdata.CatalogItemValue
public class CatalogItemValue
Objectifier to compute the value of a CatalogItem.
Stock.sumStock(data.DataBasket, data.CatalogItemValue, data.Value)| Field Summary | |
|---|---|
static CatalogItemValue |
EVALUATE_BID
A CatalogItemValue that will return the bid if the
standard value of a CatalogItem is a QuoteValue. |
static CatalogItemValue |
EVALUATE_MID
A CatalogItemValue that will return the mid if the
standard value of a CatalogItem is a QuoteValue. |
static CatalogItemValue |
EVALUATE_OFFER
A CatalogItemValue that will return the offer if the
standard value of a CatalogItem is a QuoteValue. |
static CatalogItemValue |
EVALUATE_SPREAD
A CatalogItemValue that will return the spread if the
standard value of a CatalogItem is a QuoteValue. |
| Constructor Summary | |
|---|---|
CatalogItemValue()
|
|
| Method Summary | |
|---|---|
Value |
getValue(CatalogItem ci)
Return the value of an CatalogItem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CatalogItemValue EVALUATE_BID
bid if the
standard value of a CatalogItem is a QuoteValue. Otherwise,
it will simply return the standard value of the CatalogItem.
public static final CatalogItemValue EVALUATE_OFFER
offer if the
standard value of a CatalogItem is a QuoteValue. Otherwise,
it will simply return the standard value of the CatalogItem.
public static final CatalogItemValue EVALUATE_MID
mid if the
standard value of a CatalogItem is a QuoteValue. Otherwise,
it will simply return the standard value of the CatalogItem.
public static final CatalogItemValue EVALUATE_SPREAD
spread if the
standard value of a CatalogItem is a QuoteValue. Otherwise,
it will simply return the standard value of the CatalogItem.
| Constructor Detail |
|---|
public CatalogItemValue()
| Method Detail |
|---|
public Value getValue(CatalogItem ci)
By default returns ci.getValue(), but you can create subclasses that
refer to any attribute you want to use as the CatalogItem's value.
ci - the CatalogItem whose value is to be computed
Stock.sumStock(data.DataBasket, data.CatalogItemValue, data.Value)
|
SalesPoint v3.3 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||