()
| 112 | } |
| 113 | |
| 114 | public JabberDataBlock constructBlock() { |
| 115 | JabberDataBlock item=new JabberDataBlock("item"); |
| 116 | if (type!=ITEM_ANY) { |
| 117 | item.setTypeAttribute(types[type]); |
| 118 | item.setAttribute("value", value); |
| 119 | } |
| 120 | item.setAttribute("action", actions[action] ); |
| 121 | item.setAttribute("order", String.valueOf(order)); |
| 122 | |
| 123 | if (messageStz) item.addChild(stanzas[STANZA_MSG], null); |
| 124 | if (presenceInStz) item.addChild(stanzas[STANZA_PRESENCE_IN], null); |
| 125 | if (presenceOutStz) item.addChild(stanzas[STANZA_PRESENCE_OUT], null); |
| 126 | if (iqStz) item.addChild(stanzas[STANZA_IQ], null); |
| 127 | |
| 128 | return item; |
| 129 | } |
| 130 | |
| 131 | public String getTipString() { |
| 132 | StringBuffer tip=new StringBuffer(actions[action]); |
no test coverage detected