com.ibm.retail.saf.provider
Class POSInfoImpl

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.ibm.retail.saf.provider.POSInfoImpl
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, POSInfo, java.io.Serializable
Direct Known Subclasses:
CreditCard, Default4690CashReceipt, Default4690PrintLine, DefaultLineItem, DefaultPriceInfo, DefaultTransactionID, DefaultTransactionTotals, POSRequestImpl, POSResultImpl, ScannedItemIdentifier

public class POSInfoImpl
extends java.util.HashMap
implements POSInfo

Provides a HashMap implementation of POSInfo.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
POSInfoImpl()
          Constructs a POSInfo object with no attributes
 
Method Summary
 java.lang.Object getExtendedAttribute(java.lang.String name)
          Returns the value of an extended attribute as an Object or null if the attribute is undefined.
 java.util.Iterator getExtendedAttributeNames()
          Returns an enumeration of the extended attribute names in this request.
 void removeExtendedAttribute(java.lang.String name)
          Removes an extended attribute and its value from the request.
 void setExtendedAttribute(java.lang.String name, java.lang.Object value)
          Adds an extended attribute and the Object value of the attribute to the request.
 
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 java.util.Map
equals, hashCode
 

Constructor Detail

POSInfoImpl

public POSInfoImpl()
Constructs a POSInfo object with no attributes

Method Detail

getExtendedAttribute

public java.lang.Object getExtendedAttribute(java.lang.String name)
Description copied from interface: POSInfo
Returns the value of an extended attribute as an Object or null if the attribute is undefined.

Specified by:
getExtendedAttribute in interface POSInfo
Parameters:
name - name of the attribute to be retrieved
Returns:
value of the attribute as an Object

setExtendedAttribute

public void setExtendedAttribute(java.lang.String name,
                                 java.lang.Object value)
Description copied from interface: POSInfo
Adds an extended attribute and the Object value of the attribute to the request. If an attribute already exists, it is replaced. Setting an attribute to null remotes it from the request.

Specified by:
setExtendedAttribute in interface POSInfo
Parameters:
name - name of the attribute to be set
value - value of the attribute to be set

removeExtendedAttribute

public void removeExtendedAttribute(java.lang.String name)
Description copied from interface: POSInfo
Removes an extended attribute and its value from the request.

Specified by:
removeExtendedAttribute in interface POSInfo
Parameters:
name - name of the attribute to be removed

getExtendedAttributeNames

public java.util.Iterator getExtendedAttributeNames()
Description copied from interface: POSInfo
Returns an enumeration of the extended attribute names in this request.

Specified by:
getExtendedAttributeNames in interface POSInfo
Returns:
enumeration of attribute names as String values