All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.PaymentEntity

java.lang.Object
   |
   +----semper.payment.PaymentEntity

public class PaymentEntity
extends Object
implements Serializable, Cloneable
Identifier for a payment system entity. Payment System Entities are those entities at the "end points" of a payment transactions. At the greatest resolution, they will be specific purses belonging to a specific user. But we need ways of representing lower levels of resolution. For example, a payer needs to identify only the address of the payee and not necessarily a specific purse of the payee. We use this class to identify a payment system entity at various levels of granularity: - identity of a user - identity of user and a type of payment system - identity of a user and a specific purse belonging to her Eventually, this can be a subclass of a SEMPER wide "Entity" class. This object should have enough information to identify a particular SEMPER user.

Version:
$Revision: 1.10 $ $Date: 1997/06/16 12:55:58 $
Author:
N. Asokan ([email protected])

Variable Index

 o PAYMENT_SYSTEM_NAME
Flag value that indicates that the name passed to the constructor is a payment system name.
 o PURSE_NAME
Flag value that indicates that the name passed to the constructor is a purse name.

Constructor Index

 o PaymentEntity()
 o PaymentEntity(String)
Construct a PaymentEntity object with username
 o PaymentEntity(String, ComPointAddress)
Construct a PaymentEntity object with username and ComPointAddress as parameters

Method Index

 o clone()
redefine clone so that anyone can make clones of us; this is useful in accessor methods of other classes that have an object of this class as an attribute.
 o getComPointAddress()
Retrieve the ComPointAddress (can be null -- so check for it)
 o getUserName()
Retrieve the user name
 o setComPointAddress(ComPointAddress)
Set the ComPointAddress
 o setUserName(String)
Set the name of the entity.
 o toString()
redefine toString() for pretty printing

Variables

 o PURSE_NAME
 public static final int PURSE_NAME
Flag value that indicates that the name passed to the constructor is a purse name.

 o PAYMENT_SYSTEM_NAME
 public static final int PAYMENT_SYSTEM_NAME
Flag value that indicates that the name passed to the constructor is a payment system name.

Constructors

 o PaymentEntity
 public PaymentEntity(String username,
                      ComPointAddress com_point_address)
Construct a PaymentEntity object with username and ComPointAddress as parameters

Parameters:
username - name of user
com_point_address - ComPointAddress of the remote entity (can be payment manager or payment instrument)
See Also:
ComPointAddress
 o PaymentEntity
 public PaymentEntity(String username)
Construct a PaymentEntity object with username

Parameters:
username - name of user
 o PaymentEntity
 public PaymentEntity()

Methods

 o setUserName
 public synchronized void setUserName(String user)
Set the name of the entity.

Parameters:
user - name of the entity
 o getUserName
 public String getUserName()
Retrieve the user name

Returns:
user name
 o getComPointAddress
 public ComPointAddress getComPointAddress()
Retrieve the ComPointAddress (can be null -- so check for it)

Returns:
ComPointAddress
 o setComPointAddress
 public void setComPointAddress(ComPointAddress new_address)
Set the ComPointAddress

Parameters:
new_address - new ComPointAddress
Returns:
nothing
 o toString
 public String toString()
redefine toString() for pretty printing

Overrides:
toString in class Object
 o clone
 public synchronized Object clone()
redefine clone so that anyone can make clones of us; this is useful in accessor methods of other classes that have an object of this class as an attribute.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index