com.ibm.retail.saf.provider
Class ScannedItemIdentifier

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

public class ScannedItemIdentifier
extends POSInfoImpl
implements java.io.Serializable, ItemIdentifier

Provides a default implementation of an item identifier. This implementation provides the item number as would typically be presented on a bar-coded or PLU item label.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Fields inherited from interface com.ibm.retail.saf.provider.ItemIdentifier
SCAN_LABEL, SKU, VELOCITY
 
Constructor Summary
ScannedItemIdentifier()
          Constructs an item identifier.
ScannedItemIdentifier(java.lang.String itemCode)
          Constructs an item identifier with an item code string.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if the item code and type are the same.
 java.lang.String getItemCode()
          Get the item code string.
 byte getItemCodeType()
          Get the item code type.
 void setItemCode(java.lang.String itemCode)
          Set the item code string.
 void setItemCodeType(byte itemCodeType)
          Set the item code type.
 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
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
hashCode
 

Constructor Detail

ScannedItemIdentifier

public ScannedItemIdentifier()
Constructs an item identifier.


ScannedItemIdentifier

public ScannedItemIdentifier(java.lang.String itemCode)
Constructs an item identifier with an item code string.

The item code type defaults to SCAN_LABEL

Method Detail

getItemCode

public java.lang.String getItemCode()
Get the item code string.

Specified by:
getItemCode in interface ItemIdentifier
Returns:
item code string

getItemCodeType

public byte getItemCodeType()
Get the item code type.

Specified by:
getItemCodeType in interface ItemIdentifier
Returns:
item code type

setItemCode

public void setItemCode(java.lang.String itemCode)
Set the item code string.

Specified by:
setItemCode in interface ItemIdentifier
Returns:
item code string

setItemCodeType

public void setItemCodeType(byte itemCodeType)
Set the item code type.

Specified by:
setItemCodeType in interface ItemIdentifier

equals

public boolean equals(java.lang.Object obj)
Returns true if the item code and type are the same.

Specified by:
equals in interface java.util.Map
Overrides:
equals in class java.util.AbstractMap
Parameters:
obj - another object
Returns:
true if the item code and type are the same.

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