|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.commerce.ebusiness.price.quote.Adjustment
@Deprecated public abstract class Adjustment
Represents an adjustment to a Quote object. An adjustment must have the same currency for all money values. Attempts to violate the single currency rule will produce CurrencyMismatchExceptions.
Field Summary | |
---|---|
protected List |
details
Deprecated |
protected boolean |
isSet
Deprecated |
protected AdjustmentType |
type
Deprecated |
Constructor Summary | |
---|---|
protected |
Adjustment()
Deprecated |
protected |
Adjustment(AdjustmentType aType,
Money aBasePrice)
Deprecated |
protected |
Adjustment(Money aBasePrice)
Deprecated |
Method Summary | |
---|---|
protected void |
addDetail(AdjustmentDetail aDetail)
Deprecated Adding a detail changes the adjustment type to match the detail. |
protected boolean |
checkCurrency(AdjustmentDetail detail)
Deprecated |
protected boolean |
checkCurrency(Money value)
Deprecated Compare the currency of the money specified with the currency of previous money objects in this instance. |
protected boolean |
checkCurrency(String value)
Deprecated |
protected void |
computeAdjustmentAmount()
Deprecated Computes the amount of adjustment. |
Money |
getActualPrice()
Deprecated Returns the actual price for this Adjustment. |
Money |
getAdjustmentAmount()
Deprecated Returns the amount that this adjustment affects the price of it's parent. |
Money |
getBasePrice()
Deprecated Return the base price for the Adjustment. |
String |
getCurrency()
Deprecated Returns the currency for this adjustment. |
List |
getDetails()
Deprecated Return an unmodifiable list of the AdjustmentDetails for this Adjustment. |
AdjustmentType |
getType()
Deprecated Return the AdjustmentType for this Adjustment |
protected void |
init()
Deprecated |
protected void |
markModified()
Deprecated Mark the Adjustment as modified so that the immutable ImmutableMoney objects returned from getXXXPrice() can be generated |
protected void |
reset()
Deprecated |
protected double |
roundBasePrice(double value)
Deprecated Provides a means to round the base price amount. |
void |
set(AdjustmentType aType,
Money aBasePrice)
Deprecated Set the Adjustment object with the specified values. |
void |
set(Money aBasePrice)
Deprecated Set the Adjustment object with the specified value. |
protected void |
setActualPrice(Money anActualPrice)
Deprecated copy the given Money value into our actualPrice object. |
protected void |
setAdjustmentAmount(double value)
Deprecated Sets the amount of the adjustmentAmount field. |
protected void |
setType(AdjustmentDetail aDetail)
Deprecated called by addDetail() to set the type of this adjustment. |
String |
toString()
Deprecated Provides a string representation of this object. |
static String |
toString(List adjustments)
Deprecated Provides a string representation for a List of Adjustments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AdjustmentType type
protected List details
protected boolean isSet
Constructor Detail |
---|
protected Adjustment()
protected Adjustment(Money aBasePrice)
protected Adjustment(AdjustmentType aType, Money aBasePrice)
Method Detail |
---|
protected void init()
protected void reset()
public void set(AdjustmentType aType, Money aBasePrice)
aType
- the AdjustmentType for this adjustment.aBasePrice
- the base price for the Adjustment.AdjustmentType
public void set(Money aBasePrice)
aBasePrice
- the base price for the Adjustment.public final Money getActualPrice()
public final Money getAdjustmentAmount()
public final Money getBasePrice()
public final AdjustmentType getType()
AdjustmentType
public List getDetails()
AdjustmentDetail
public final String getCurrency()
protected double roundBasePrice(double value)
value
- Money amount to be roundedprotected final void setActualPrice(Money anActualPrice)
protected void computeAdjustmentAmount()
protected final void setAdjustmentAmount(double value)
protected final void markModified()
protected void addDetail(AdjustmentDetail aDetail)
protected void setType(AdjustmentDetail aDetail)
protected final boolean checkCurrency(Money value)
value
- a money object to be compared to the current value
protected final boolean checkCurrency(String value)
protected final boolean checkCurrency(AdjustmentDetail detail)
public String toString()
toString
in class Object
public static String toString(List adjustments)
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |