com.ibm.retail.saf.provider
Class DefaultLineItem

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.ibm.retail.saf.provider.POSInfoImpl
                    |
                    +--com.ibm.retail.saf.provider.DefaultLineItem
All Implemented Interfaces:
java.lang.Cloneable, LineItem, java.util.Map, POSInfo, java.io.Serializable
Direct Known Subclasses:
DefaultReceiptLineItem

public class DefaultLineItem
extends POSInfoImpl
implements LineItem

Provides item and quantity information for an item.

This information is required by a POSProvider that is processing order information through 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
DefaultLineItem()
           
DefaultLineItem(java.lang.String itemCode, java.lang.String qty)
           
 
Method Summary
 com.ibm.retail.saf.provider.ItemIdentifier getItemIdentifier()
          Get the item identifier for this line item.
 java.lang.String getQuantity()
          Get the quantity purchased.
 void setItemIdentifier(com.ibm.retail.saf.provider.ItemIdentifier itemID)
          Set the item identifier for this line item.
 void setQuantity(java.lang.String qty)
          Set the quantity purchased.
 
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, toString
 
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

DefaultLineItem

public DefaultLineItem()

DefaultLineItem

public DefaultLineItem(java.lang.String itemCode,
                       java.lang.String qty)
Method Detail

getItemIdentifier

public com.ibm.retail.saf.provider.ItemIdentifier getItemIdentifier()
Description copied from interface: LineItem
Get the item identifier for this line item.

Specified by:
getItemIdentifier in interface LineItem
Returns:
item identification

getQuantity

public java.lang.String getQuantity()
Description copied from interface: LineItem
Get the quantity purchased.

Specified by:
getQuantity in interface LineItem
Returns:
quantity

setItemIdentifier

public void setItemIdentifier(com.ibm.retail.saf.provider.ItemIdentifier itemID)
Description copied from interface: LineItem
Set the item identifier for this line item.

Specified by:
setItemIdentifier in interface LineItem

setQuantity

public void setQuantity(java.lang.String qty)
Description copied from interface: LineItem
Set the quantity purchased.

Specified by:
setQuantity in interface LineItem