All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.txlayer.extensions.payment.PaymentAttribute

java.lang.Object
   |
   +----semper.txlayer.extensions.payment.PaymentAttribute

public class PaymentAttribute
extends Object
implements Attribute
This is a special attribute that modifies the behaviour of a PaymentTransfer. A PaymentTransfer may want to have certain preferences, e.g., in what purse to put a payment into etc., and these can be set by specifying a semi-filled PaymentItem.
This attribute must be set into the offeredAttributes when preparing a TransferTransaction.


Constructor Index

 o PaymentAttribute(PaymentItem)
Constructor with PaymentItem.

Method Index

 o acceptBeingPutInto(Class)
This method tests if an attribute allows others to put it into another class.
 o getPaymentItem()
 o init()
Does nothing...
 o toString()

Constructors

 o PaymentAttribute
 public PaymentAttribute(PaymentItem item)
Constructor with PaymentItem. Other Constructors are forbidden.

Methods

 o getPaymentItem
 protected PaymentItem getPaymentItem()
Returns:
The PaymentItem inside us. This method is only for the use of class PaymentTransfer.
 o toString
 public String toString()
Returns:
A String representation of ourselves.
Overrides:
toString in class Object
 o acceptBeingPutInto
 public boolean acceptBeingPutInto(Class c)
This method tests if an attribute allows others to put it into another class.

Parameters:
The - class to test for.
Returns:
Whether the payment attribute wants to be put into an Object of class c or not. A PaymentAttribute wants to be put into a PaymentTransfer, or into the composite transfer methods VectorTransfer and ContainerTransfer (because these may contain a PaymentTransfer).
 o init
 public void init()
Does nothing... .


All Packages  Class Hierarchy  This Package  Previous  Next  Index