MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / constructBlock

Method constructBlock

src/main/java/PrivacyLists/PrivacyItem.java:114–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]);

Callers 2

generateListMethod · 0.95

Calls 3

setTypeAttributeMethod · 0.95
setAttributeMethod · 0.95
addChildMethod · 0.95

Tested by

no test coverage detected