|
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.DataWrapper
A wrapper for the data in DataPayment
. The data can be either a string, an array of bytes or a serializable object.
The type is decided in the constructor. Also contains a characteristic (description of the data) and its value. For easier usage,
a flag is contained to mark it whether it has been sued for payment or not.
DataPayment
, Serialized FormField Summary | |
byte[] |
byteData
The actual data: Type array of bytes. |
String |
characteristic
The characteristic (=description) of the data. |
Serializable |
serialData
The actual data: Type serializable object. |
String |
stringData
The actual data: Type string. |
boolean |
used
Flag to mark whether this data has already been used for payment or not. |
Price |
value
The value of the data. |
Constructor Summary | |
DataWrapper(String characteristic,
byte[] byteData,
Price value)
Create a new data wrapper with the type array of bytes. |
|
DataWrapper(String characteristic,
Serializable serialData,
Price value)
Create a new data wrapper with the type serializable object. |
|
DataWrapper(String characteristic,
String stringData,
Price value)
Create a new data wrapper with the type string. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public Price value
public String characteristic
public String stringData
public byte[] byteData
public Serializable serialData
public boolean used
Constructor Detail |
public DataWrapper(String characteristic, String stringData, Price value)
characteristic
- the description of the contentvalue
- the value of the datastringData
- the string datapublic DataWrapper(String characteristic, byte[] byteData, Price value)
characteristic
- the description of the contentvalue
- the value of the databyteData
- the byte datapublic DataWrapper(String characteristic, Serializable serialData, Price value)
characteristic
- the description of the contentvalue
- the value of the dataserialData
- the object data
|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |