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.
-
PaymentAttribute(PaymentItem)
- Constructor with PaymentItem.
-
acceptBeingPutInto(Class)
- This method tests if an attribute allows others
to put it into another class.
-
getPaymentItem()
-
-
init()
- Does nothing...
-
toString()
-
PaymentAttribute
public PaymentAttribute(PaymentItem item)
- Constructor with PaymentItem.
Other Constructors are forbidden.
getPaymentItem
protected PaymentItem getPaymentItem()
- Returns:
- The PaymentItem inside us.
This method is only for the use of class
PaymentTransfer.
toString
public String toString()
- Returns:
- A String representation of ourselves.
- Overrides:
- toString in class Object
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).
init
public void init()
- Does nothing... .
All Packages Class Hierarchy This Package Previous Next Index