org.elkoserver.server.workshop.bank
Class Currency

java.lang.Object
  extended by org.elkoserver.server.workshop.bank.Currency
All Implemented Interfaces:
Encodable

public class Currency
extends Object
implements Encodable

Object representing a defined currency: a type token denominating a monetary value.


Method Summary
 JSONLiteral encode(EncodeControl control)
          Encode this currency descriptor for transmission or persistence.
 String memo()
          Obtain this currency's memo string, an arbitrary annotation associated with the currency when it was created.
 String name()
          Obtain this currency's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public JSONLiteral encode(EncodeControl control)
Encode this currency descriptor for transmission or persistence.

Specified by:
encode in interface Encodable
Parameters:
control - Encode control determining what flavor of encoding should be done.
Returns:
a JSON literal representing this currency.

memo

public String memo()
Obtain this currency's memo string, an arbitrary annotation associated with the currency when it was created.

Returns:
the currency's memo.

name

public String name()
Obtain this currency's name.

Returns:
the currency name.