AdjustmentDetail Class

com.bea.commerce.ebusiness.price.quote
AdjustmentDetail Class

public class AdjustmentDetail

    extends Object
    implements Serializable

Provides information describing an Adjustment. AdjustmentDetails can only be modified by resetting the entire object.

Related Topics

Adjustment
AdjustmentType
Money


Hierarchy
Object
  AdjustmentDetail
All Implemented Interfaces

Serializable

Constructor Summary

AdjustmentDetail()

AdjustmentDetail(Adjustment parent, int seqNumber, AdjustmentType type, Money initialPrice, Money endPrice, String computation, String reason, Object detailID)

Construct a new AdjustmentDetail with the specified values.
AdjustmentDetail(AdjustmentType type, Money initialPrice, Money endPrice, String computation, String reason, Object detailID)

Construct a new AdjustmentDetail with the specified values.
 

Method Summary

protected boolean
equalContent(AdjustmentDetail aDetail)
public final String
getComputation()
Returns the computation string which describes how the end price was computed from the initial price
public final String
getCurrency()
Returns the currency for this adjustment.
public final Object
getDetailID()
Returns the detail ID for this detail.
public final Money
getEndPrice()
Returns the final price for the detail
public final Money
getInitialPrice()
Returns the initial price for the detail
public final Adjustment
getParent()
Returns the Adjustment that is the parent of this detail
public final String
getReason()
Returns the reason for the adjustment.
public final int
getSeqNumber()
Returns the sequence number of this detail
public final AdjustmentType
getType()
Returns the AdjustmentType for this detail.
public void
set(AdjustmentType type, Money initialPrice, Money endPrice, String computation, String reason, Object detailID)
Set the AdjustmentDetail with the specified values.
protected void
set(Adjustment parent, int seqNumber, AdjustmentType type, Money initialPrice, Money endPrice, String computation, String reason, Object detailID)
Set the AdjustmentDetail with the specified values.
protected void
set(Adjustment parent, int seqNumber)
public String
toString()
Produces a string representing this detail.
public static String
toString(List details)
Produces a string representing a List of details.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
   

Constructor Detail

AdjustmentDetail

protected AdjustmentDetail()

AdjustmentDetail

protected AdjustmentDetail(Adjustment parent, 
                           int seqNumber, 
                           AdjustmentType type, 
                           Money initialPrice, 
                           Money endPrice, 
                           String computation, 
                           String reason, 
                           Object detailID)
Construct a new AdjustmentDetail with the specified values.

Related Topics

AdjustmentType
Money


AdjustmentDetail

public AdjustmentDetail(AdjustmentType type, 
                        Money initialPrice, 
                        Money endPrice, 
                        String computation, 
                        String reason, 
                        Object detailID)
Construct a new AdjustmentDetail with the specified values.

Related Topics

AdjustmentType
Money

 

Method Detail

equalContent(AdjustmentDetail) Method

protected boolean equalContent(AdjustmentDetail aDetail)

getComputation() Method

public final String getComputation()
Returns the computation string which describes how the end price was computed from the initial price


getCurrency() Method

public final String getCurrency()
Returns the currency for this adjustment. All money values for this adjustment are of this currency


getDetailID() Method

public final Object getDetailID()
Returns the detail ID for this detail.


getEndPrice() Method

public final Money getEndPrice()
Returns the final price for the detail


getInitialPrice() Method

public final Money getInitialPrice()
Returns the initial price for the detail


getParent() Method

public final Adjustment getParent()
Returns the Adjustment that is the parent of this detail


getReason() Method

public final String getReason()
Returns the reason for the adjustment.


getSeqNumber() Method

public final int getSeqNumber()
Returns the sequence number of this detail


getType() Method

public final AdjustmentType getType()
Returns the AdjustmentType for this detail.


set(AdjustmentType, Money, Money, String, String, Object) Method

public void set(AdjustmentType type, 
                Money initialPrice, 
                Money endPrice, 
                String computation, 
                String reason, 
                Object detailID)
throws QuoteException
Set the AdjustmentDetail with the specified values. New Money objects are created from those specified

Parameters

type
the AdjustmentType of this detail
initialPrice
the price of the object before adjustment.
endPrice
the price of the object after adjustment.
computation
a string describing the computation used to compute the end price from the initial price.
reason
the reason for the adjustment
detailID
the identifier associated with this adjustment.

Exceptions

QuoteException

Related Topics

AdjustmentType
Money


set(Adjustment, int, AdjustmentType, Money, Money, String, String, Object) Method

protected void set(Adjustment parent, 
                   int seqNumber, 
                   AdjustmentType type, 
                   Money initialPrice, 
                   Money endPrice, 
                   String computation, 
                   String reason, 
                   Object detailID)
throws QuoteException
Set the AdjustmentDetail with the specified values. New Money objects are created from those specified.

Parameters

parent
the parent Adjustment for this detail
seqNumber
the sequence number for this detail
type
the AdjustmentType of this detail
initialPrice
the price of the object before adjustment.
endPrice
the price of the object after adjustment.
computation
a string describing the computation used to compute the end price from the initial price.
reason
the reason for the adjustment
detailID
the identifier associated with this adjustment.

Exceptions

QuoteException

Related Topics

AdjustmentType
Money


set(Adjustment, int) Method

protected void set(Adjustment parent, 
                   int seqNumber)

toString() Method

public String toString()
Produces a string representing this detail. This method is intended for debugging purposes and may change at anytime.

Overrides
Object.toString()

toString(List) Method

public static String toString(List details)
Produces a string representing a List of details. This method is intended for debugging purposes and may change at anytime.

Parameters

details
a List of AdjustmentDetails.