public abstract class SnippetConverter extends java.lang.Object implements StateSavable
Constructor and Description |
---|
SnippetConverter() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canConvert(java.lang.Class cls) |
abstract java.lang.String |
convert(java.lang.Object obj) |
org.json.JSONObject |
getCurrentState()
state and be persisted using JSON
|
boolean |
restoreState(org.json.JSONObject savedState)
state can be restored from JSON
|
public abstract java.lang.String convert(java.lang.Object obj)
public abstract boolean canConvert(java.lang.Class cls)
public org.json.JSONObject getCurrentState()
StateSavable
getCurrentState
in interface StateSavable
public boolean restoreState(org.json.JSONObject savedState)
StateSavable
restoreState
in interface StateSavable