| | |
| | | public String orgTag ;//组织标识 |
| | | public String protocol ;//协议名称 |
| | | public String devId ;//设备(FBox)ID |
| | | public String topic ;//消息主题 |
| | | public String name;//消息主题末端名称 |
| | | |
| | | public boolean isEmpty(){ |
| | | return orgTag == null || protocol == null || devId == null || topic == null |
| | | || orgTag.trim().length() == 0 || protocol.trim().length() == 0 || devId.trim().length() == 0 || topic.trim().length() == 0 ; |
| | | return orgTag == null || protocol == null || devId == null || name == null |
| | | || orgTag.trim().length() == 0 || protocol.trim().length() == 0 || devId.trim().length() == 0 || name.trim().length() == 0 ; |
| | | } |
| | | |
| | | public String shortName(){ |
| | | return topic ; |
| | | return name; |
| | | } |
| | | |
| | | public String longName(){ |
| | | return orgTag + "/" + protocol + "/" + devId + "/" + topic ; |
| | | return orgTag + "/" + protocol + "/" + devId + "/" + name; |
| | | } |
| | | } |