com.ibm.retail.saf.provider
Class DefaultPriceInfo

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.ibm.retail.saf.provider.POSInfoImpl
                    |
                    +--com.ibm.retail.saf.provider.DefaultPriceInfo
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, POSInfo, PriceInfo, java.io.Serializable

public class DefaultPriceInfo
extends POSInfoImpl
implements PriceInfo

Contains price information about an item in the point-of-sale system.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
DefaultPriceInfo()
          Construct a PriceInfo object with no attributes.
DefaultPriceInfo(com.ibm.retail.saf.provider.ItemIdentifier itemID, java.lang.String desc, java.lang.String regPrice)
          Construct a PriceInfo object with a price, description, and unit price.
 
Method Summary
 java.lang.String getItemDescription()
          Get the item description.
 com.ibm.retail.saf.provider.ItemIdentifier getItemIdentifier()
          Get the item identifier.
 java.lang.String getRegularPrice()
          Get the item price.
 void setItemDescription(java.lang.String desc)
          Set the item description.
 void setItemIdentifier(com.ibm.retail.saf.provider.ItemIdentifier itemID)
          Set the item identifier.
 void setRegularPrice(java.lang.String regPrice)
          Set the item price.
 java.lang.String toString()
          Returns a String representation of this item code.
 
Methods inherited from class com.ibm.retail.saf.provider.POSInfoImpl
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.retail.saf.provider.POSInfo
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DefaultPriceInfo

public DefaultPriceInfo()
Construct a PriceInfo object with no attributes.


DefaultPriceInfo

public DefaultPriceInfo(com.ibm.retail.saf.provider.ItemIdentifier itemID,
                        java.lang.String desc,
                        java.lang.String regPrice)
Construct a PriceInfo object with a price, description, and unit price.

Method Detail

setItemIdentifier

public void setItemIdentifier(com.ibm.retail.saf.provider.ItemIdentifier itemID)
Set the item identifier.

Specified by:
setItemIdentifier in interface PriceInfo
Parameters:
itemID - item identifier

setItemDescription

public void setItemDescription(java.lang.String desc)
Set the item description.

Specified by:
setItemDescription in interface PriceInfo
Parameters:
desc - item description

setRegularPrice

public void setRegularPrice(java.lang.String regPrice)
Set the item price.

Specified by:
setRegularPrice in interface PriceInfo
Parameters:
regPrice - regular unit price

getItemIdentifier

public com.ibm.retail.saf.provider.ItemIdentifier getItemIdentifier()
Get the item identifier.

Specified by:
getItemIdentifier in interface PriceInfo
Returns:
item identifier

getItemDescription

public java.lang.String getItemDescription()
Get the item description.

Specified by:
getItemDescription in interface PriceInfo
Returns:
item description

getRegularPrice

public java.lang.String getRegularPrice()
Get the item price.

Specified by:
getRegularPrice in interface PriceInfo
Returns:
regular unit price

toString

public java.lang.String toString()
Returns a String representation of this item code.

Overrides:
toString in class java.util.AbstractMap
Returns:
item code string