public abstract class AbstractCallback extends java.lang.Object implements Callback
| Modifier and Type | Field and Description |
|---|---|
protected int |
_id |
protected java.lang.String |
content |
protected static java.lang.String |
VALUE |
| Constructor and Description |
|---|
AbstractCallback() |
AbstractCallback(org.json.JSONObject raw,
int index) |
| Modifier and Type | Method and Description |
|---|---|
int |
get_id()
Return the unique id for this callback.
|
java.lang.String |
getContent()
Return the raw content of the Callback.
|
protected org.json.JSONObject |
getContentAsJson() |
java.lang.Object |
getInputValue()
Get the first value for input
|
java.lang.Object |
getInputValue(int index)
Get the value for input
|
protected java.lang.String |
getName(org.json.JSONObject jsonObject) |
protected abstract void |
setAttribute(java.lang.String name,
java.lang.Object value) |
protected void |
setContent(org.json.JSONObject jsonObject)
Sets the value of the Callback
|
protected void |
setValue(java.lang.Object value)
Set the first value for input
|
protected void |
setValue(java.lang.Object value,
int index)
Set the value for the input.
|
protected static final java.lang.String VALUE
protected java.lang.String content
protected int _id
public AbstractCallback(org.json.JSONObject raw,
int index)
public AbstractCallback()
protected org.json.JSONObject getContentAsJson()
throws org.json.JSONException
org.json.JSONExceptionprotected abstract void setAttribute(java.lang.String name,
java.lang.Object value)
protected java.lang.String getName(org.json.JSONObject jsonObject)
protected void setContent(org.json.JSONObject jsonObject)
jsonObject - The Json Object to represent the Callbackprotected void setValue(java.lang.Object value,
int index)
value - The input valueindex - The index of the element.protected void setValue(java.lang.Object value)
value - The input valuepublic java.lang.Object getInputValue()
public java.lang.Object getInputValue(int index)
index - The index of the element.public java.lang.String getContent()
CallbackgetContent in interface Callback