Agent System POND 1.2 (28.2.2002)

FIM.payment
Class EmptyPayment

java.lang.Object
  |
  +--FIM.payment.PaymentBase
        |
        +--FIM.payment.EmptyPayment
All Implemented Interfaces:
Payment, Serializable, XMLEncodeable

public class EmptyPayment
extends PaymentBase

A class representing the payment by providign some nothing. To be used for free "purchases". The characteristic is "NO PAYMENT".

Version:
1.0
Author:
Michael Sonntag
See Also:
Invoice, Serialized Form

Constructor Summary
EmptyPayment()
          Create a new empty object.
EmptyPayment(Element elem)
          Create a new empty payment from an XML element.
EmptyPayment(Invoice inv)
          Create a new empty 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.
 
Methods inherited from class FIM.payment.PaymentBase
characteristics, getAsSerializable, getCertificate, getEncoded, getInvoice, isSigned, sign, verifySignature, verifySignature
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface FIM.payment.Payment
toString
 

Constructor Detail

EmptyPayment

public EmptyPayment()
Create a new empty object. To be used for parsing in XML data later. Must be public so it can be created by factory methods.

EmptyPayment

public EmptyPayment(Invoice inv)
Create a new empty payment.
Parameters:
invoice - the invoice this payment is for

EmptyPayment

public EmptyPayment(Element elem)
Create a new empty payment from an XML element.
Parameters:
elem - the XML element containing the encoded form
Method Detail

getAsXMLElement

public Element getAsXMLElement(Document doc)
Retrieve the payment as an XML element.
Overrides:
getAsXMLElement in class PaymentBase
Parameters:
doc - the document within which to create the element
Returns:
the currency as an element

decodeXMLElement

public void decodeXMLElement(Element elem)
                      throws IllegalArgumentException
Parse back the payment from an XML element.
Overrides:
decodeXMLElement in class PaymentBase
Parameters:
elem - the element containing the currency to parse back
Throws:
IllegalArgumentException - if the element is incorrect (e. g. wrong tag name)

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.