com.ibm.retail.saf.provider
Interface POSInfo

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
CashReceiptImage, CreditPaymentInfo, ItemIdentifier, LineItem, LogRequest, PaymentInfo, PaymentRequest, PaymentResult, POSRequest, POSResult, PriceInfo, PriceRequest, PriceResult, PrintLine, ProviderRequest, ReceiptLineItem, TransactionID, TransactionRequest, TransactionResult, TransactionTotals
All Known Implementing Classes:
CreditCard, Default4690CashReceipt, Default4690PrintLine, DefaultLineItem, DefaultLogRequest, DefaultPaymentRequest, DefaultPaymentResult, DefaultPriceInfo, DefaultPriceRequest, DefaultPriceResult, DefaultProviderRequest, DefaultReceiptLineItem, DefaultTransactionID, DefaultTransactionRequest, DefaultTransactionResult, DefaultTransactionTotals, POSInfoImpl, POSRequestImpl, POSResultImpl, ScannedItemIdentifier

public interface POSInfo
extends java.io.Serializable

Provides an extensible interface for exchanging information with the point-of-sale system using attributes. Extended attributes are contained as a collection of name-value pairs.


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.
 

Method Detail

getExtendedAttribute

public 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.

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)
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.

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)
Removes an extended attribute and its value from the request.

Parameters:
name - name of the attribute to be removed

getExtendedAttributeNames

public java.util.Iterator getExtendedAttributeNames()
Returns an enumeration of the extended attribute names in this request.

Returns:
enumeration of attribute names as String values