|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--FIM.payment.PaymentBase | +--FIM.payment.VoucherPayment
A class representing the payment by providing a voucher (which must be a certificate).
Invoice
, Serialized FormConstructor Summary | |
VoucherPayment()
Create a new empty object. |
|
VoucherPayment(Element elem)
Create a new voucher payment from an XML element. |
|
VoucherPayment(Invoice inv,
String characteristic,
Certificate voucher)
Create a new voucher payment. |
Method Summary | |
void |
decodeXMLElement(Element elem)
Parse back the payment from an XML element. |
Element |
getAsXMLElement(Document doc)
Retrieve the payment as an XML element. |
byte[] |
getEncoded()
Retrieve the payment in encoded form to be used for signing. |
Certificate |
getVoucher()
Retrieve the voucher. |
String |
toString()
Retrieve the payment as a string, suitable for presenting to the user in a very simple form. |
Methods inherited from class FIM.payment.PaymentBase |
characteristics, getAsSerializable, getCertificate, getInvoice, isSigned, sign, verifySignature, verifySignature |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public VoucherPayment()
public VoucherPayment(Invoice inv, String characteristic, Certificate voucher)
invoice
- the invoice this payment is forcharacteristic
- the description of the contentvoucher
- the voucherpublic VoucherPayment(Element elem)
elem
- the XML element containing the encoded formMethod Detail |
public Certificate getVoucher()
public String toString()
toString
in class Object
public byte[] getEncoded()
getEncoded
in class PaymentBase
public Element getAsXMLElement(Document doc)
getAsXMLElement
in class PaymentBase
doc
- the document within which to create the elementpublic void decodeXMLElement(Element elem) throws IllegalArgumentException
decodeXMLElement
in class PaymentBase
elem
- the element containing the currency to parse backIllegalArgumentException
- if the element is incorrect (e. g. wrong tag name)
|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |