IdType - "id" type parameterpublic abstract class JsonrpcObject<IdType> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NAME_ID
The property name for
id. |
static String |
PROPERTY_NAME_JSONRPC
The property name for
jsonrpc. |
static String |
PROPERTY_VALUE_JSONRPC
The fixed value for "jsonrpc" attribute.
|
| Constructor and Description |
|---|
JsonrpcObject() |
| Modifier and Type | Method and Description |
|---|---|
<T extends JsonrpcObject<? extends IdType>> |
copyIdFrom(T object)
|
<T extends JsonrpcObject<? super IdType>> |
copyIdTo(T object)
|
IdType |
getId()
Returns the current value of "id" property.
|
String |
getJsonrpc()
Returns the current value of "jsonrpc" property.
|
void |
setId(IdType id)
Replaces the current value of "id" property with given.
|
void |
setJsonrpc(String jsonrpc)
Replaces the current value of "2.0" property with given.
|
String |
toString()
Returns a string representation of the object.
|
public static final String PROPERTY_NAME_JSONRPC
jsonrpc.public static final String PROPERTY_NAME_ID
id.public static final String PROPERTY_VALUE_JSONRPC
public String toString()
public String getJsonrpc()
public void setJsonrpc(String jsonrpc)
jsonrpc - new value for "2.0" property.public IdType getId()
public void setId(IdType id)
id - new value for "id" property.public <T extends JsonrpcObject<? super IdType>> void copyIdTo(T object)
T - object type parameter.object - the object whose "id" property is copied from this object's "id" property.getId(),
setId(Object)public <T extends JsonrpcObject<? extends IdType>> void copyIdFrom(T object)
Copyright © 2019 Jinahya, Inc.. All rights reserved.