public class MapPrintHandler extends JsonPrintHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_NAME |
static java.lang.String |
KEY_VALUE |
m_printer| Constructor and Description |
|---|
MapPrintHandler(JsonPrinter printer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(java.lang.Object o)
Indicates whether this handler can take care of printing a particular
object.
|
ca.uqac.lif.json.JsonElement |
handle(java.lang.Object o)
Prints an object
|
resetpublic static java.lang.String KEY_NAME
public static java.lang.String KEY_VALUE
public MapPrintHandler(JsonPrinter printer)
public boolean canHandle(java.lang.Object o)
PrintHandlero - The objectpublic ca.uqac.lif.json.JsonElement handle(java.lang.Object o)
throws PrintException
PrintHandlero - The object to be printedPrintException - Thrown if the object cannot be printedCopyright © Sylvain HallĂ©. All Rights Reserved.