java.lang.Object
public static final java.lang.String KEY_BULK_DATA
public static final java.lang.String KEY_PROTECTED
protected java.util.Hashtable store
public RPCStruct()
protected RPCStruct(RPCStruct rpcs)
public RPCStruct(java.util.Hashtable<java.lang.String, java.lang.Object> hashtable)
public boolean getStoreValue(String key)
public java.util.Hashtable getStore()
public void deserializeJSON(JSONObject jsonObject) throws org.json.JSONException
public org.json.JSONObject serializeJSON() throws org.json.JSONException
public org.json.JSONObject serializeJSON(byte protocolVersion) throws org.json.JSONException
This method should clean the RPC to make sure it is compliant with the spec.
NOTE: Super needs to be called at the END of the method
public void format(Version rpcVersion,boolean formatParams)
public byte getBulkData()
public com.smartdevicelink.proxy.RPCStruct setBulkData(byte[] bulkData)
public com.smartdevicelink.proxy.RPCStruct setPayloadProtected(Boolean bVal)
public java.lang.Boolean isPayloadProtected()
protected java.lang.String getMessageTypeName(java.util.Set<java.lang.String> keys)
protected boolean hasKey(java.util.Set<java.lang.String> keys,String keyName)
public com.smartdevicelink.proxy.RPCStruct setValue(String key,Object value)
public java.lang.Object getValue(String key)
public java.lang.Object getObject(java.lang.Class tClass,String key)
protected java.lang.Object formatObject(java.lang.Class tClass,Object obj)
protected java.lang.Object getValueForString(java.lang.Class tClass,String s)
public java.lang.String getString(String key)
public java.lang.Integer getInteger(String key)
public java.lang.Double getDouble(String key)
public java.lang.Float getFloat(String key)
public java.lang.Boolean getBoolean(String key)
public java.lang.Long getLong(String key)
Creates a deep copy of the object
public com.smartdevicelink.proxy.RPCStruct clone()
Uses the RPCStruct store for RPCStruct objects
public boolean equals(Object obj)
Used to compile hashcode for RPCStruct
public int hashCode()
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |