| Public 成员函数 | |
|---|---|
| RtmAttribute (String key, String value) | |
| void | setKey (String key) |
| String | getKey () |
| void | setValue (String value) |
| String | getValue () |
| String | toString () |
详细描述
用于维护 RTM 属性的类。
构造及析构函数说明
RtmAttribute()
org.ar.rtm.RtmAttribute.RtmAttribute (String key,String value)
RtmAttribute 构造方法。
| 参数 | 描述 |
|---|---|
| key | 属性名。必须为可见字符且长度不得超过 32 字节。 |
| value | 属性值。长度不得超过 8 KB。 |
成员函数说明
getKey()
String org.ar.rtm.RtmAttribute.getKey ()
获取属性名。
返回
通过 setKey 方法设置的属性名。
getValue()
String org.ar.rtm.RtmAttribute.getValue()
获取属性值。
返回
通过 setValue 方法设置的属性名。
setKey()
void org.ar.rtm.RtmAttribute.setKey (String key)
设置属性名。
| 参数 | 描述 |
|---|---|
| key | 属性名。必须为可见字符且不得超过 32 字节。 |
setValue()
void org.ar.rtm.RtmAttribute.setValue (String value)
设置属性值。
| 参数 | 描述 |
|---|---|
| value | 属性值。长度不得超过 8 KB。 |

