com.konakart.al
Class ProdOption

java.lang.Object
  extended by com.konakart.al.ProdOption

public class ProdOption
extends java.lang.Object

A ProdOptionContainer class contains an array of these ProdOption classes. The purpose of this class is to contain all of the value information for a product option including the price of the value.(e.g. Option = memory, Value = 32MB, 64MB etc.). The attributes sign and formatted values are calculated in this class in order to not have to implement the logic in the JSP


Constructor Summary
ProdOption(int id, java.lang.String value, java.math.BigDecimal priceExTax, java.math.BigDecimal priceIncTax, KKAppEng kkAppEng)
          Constructor
 
Method Summary
 java.lang.String getFormattedValueExTax()
           
 java.lang.String getFormattedValueIncTax()
           
 int getId()
           
 java.math.BigDecimal getPriceExTax()
           
 java.math.BigDecimal getPriceIncTax()
           
 java.lang.String getSign()
           
 java.lang.String getValue()
           
 void setFormattedValueExTax(java.lang.String formattedValueExTax)
           
 void setFormattedValueIncTax(java.lang.String formattedValueIncTax)
           
 void setId(int id)
           
 void setPriceExTax(java.math.BigDecimal priceExTax)
           
 void setPriceIncTax(java.math.BigDecimal priceIncTax)
           
 void setSign(java.lang.String sign)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProdOption

public ProdOption(int id,
                  java.lang.String value,
                  java.math.BigDecimal priceExTax,
                  java.math.BigDecimal priceIncTax,
                  KKAppEng kkAppEng)
           throws com.konakart.app.KKException,
                  KKAppException
Constructor

Parameters:
id -
value -
priceExTax -
priceIncTax -
kkAppEng -
Throws:
com.konakart.app.KKException
KKAppException
Method Detail

getId

public int getId()
Returns:
Returns the id.

setId

public void setId(int id)
Parameters:
id - The id to set.

getValue

public java.lang.String getValue()
Returns:
Returns the value.

setValue

public void setValue(java.lang.String value)
Parameters:
value - The value to set.

getSign

public java.lang.String getSign()
Returns:
Returns the sign.

setSign

public void setSign(java.lang.String sign)
Parameters:
sign - The sign to set.

getPriceExTax

public java.math.BigDecimal getPriceExTax()
Returns:
Returns the priceExTax.

setPriceExTax

public void setPriceExTax(java.math.BigDecimal priceExTax)
Parameters:
priceExTax - The priceExTax to set.

getPriceIncTax

public java.math.BigDecimal getPriceIncTax()
Returns:
Returns the priceIncTax.

setPriceIncTax

public void setPriceIncTax(java.math.BigDecimal priceIncTax)
Parameters:
priceIncTax - The priceIncTax to set.

getFormattedValueExTax

public java.lang.String getFormattedValueExTax()
Returns:
Returns the formattedValueExTax.

setFormattedValueExTax

public void setFormattedValueExTax(java.lang.String formattedValueExTax)
Parameters:
formattedValueExTax - The formattedValueExTax to set.

getFormattedValueIncTax

public java.lang.String getFormattedValueIncTax()
Returns:
Returns the formattedValueIncTax.

setFormattedValueIncTax

public void setFormattedValueIncTax(java.lang.String formattedValueIncTax)
Parameters:
formattedValueIncTax - The formattedValueIncTax to set.


Copyright © 2006 DS Data Systems UK Ltd.