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])
-
PAYMENT_SYSTEM_NAME
- Flag value that indicates that the name passed to the constructor is
a payment system name.
-
PURSE_NAME
- Flag value that indicates that the name passed to the constructor is
a purse name.
-
PaymentEntity()
-
-
PaymentEntity(String)
- Construct a PaymentEntity object with username
-
PaymentEntity(String, ComPointAddress)
- Construct a PaymentEntity object with username and
ComPointAddress as parameters
-
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.
-
getComPointAddress()
- Retrieve the ComPointAddress (can be null -- so check for it)
-
getUserName()
- Retrieve the user name
-
setComPointAddress(ComPointAddress)
- Set the ComPointAddress
-
setUserName(String)
- Set the name of the entity.
-
toString()
- redefine toString() for pretty printing
PURSE_NAME
public static final int PURSE_NAME
- Flag value that indicates that the name passed to the constructor is
a purse name.
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.
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
PaymentEntity
public PaymentEntity(String username)
- Construct a PaymentEntity object with username
- Parameters:
- username - name of user
PaymentEntity
public PaymentEntity()
setUserName
public synchronized void setUserName(String user)
- Set the name of the entity.
- Parameters:
- user - name of the entity
getUserName
public String getUserName()
- Retrieve the user name
- Returns:
- user name
getComPointAddress
public ComPointAddress getComPointAddress()
- Retrieve the ComPointAddress (can be null -- so check for it)
- Returns:
- ComPointAddress
setComPointAddress
public void setComPointAddress(ComPointAddress new_address)
- Set the ComPointAddress
- Parameters:
- new_address - new ComPointAddress
- Returns:
- nothing
toString
public String toString()
- redefine toString() for pretty printing
- Overrides:
- toString in class Object
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