public static void dumpAttributes(Map attrs, XMLWriter xmlw) { for (Iterator keyit = attrs.keySet().iterator(); keyit.hasNext();) { String key = (String) keyit.next(); String attrvalue = (String) attrs.get(key); dumpAttribute(key, attrvalue, xmlw); } }
public void replaceAttributes() { if (!iselide) { XMLUtil.dumpAttributes(attrcopy, xmlw); } dumpTemplateBody(); }
setLumpString(valuelump, XMLUtil.encode(attrvalue));
public static void dumpHiddenField(UIParameter todump, XMLWriter xmlw) { xmlw.writeRaw("<input type=\"hidden\" "); boolean isvirtual = todump instanceof UIBinding && ((UIBinding)todump).virtual; XMLUtil.dumpAttribute(isvirtual? "id" : "name", todump.name, xmlw); XMLUtil.dumpAttribute("value", todump.value, xmlw); xmlw.writeRaw(" />\n"); }
private void dumpBranchHead(UIBranchContainer branch, XMLLump targetlump) { HashMap attrcopy = new HashMap(); attrcopy.putAll(targetlump.attributemap); IDassigner.adjustForID(attrcopy, branch); decoratormanager.decorate(branch.decorators, targetlump.getTag(), attrcopy); // TODO: normalise this silly space business pos .write(targetlump.parent.buffer, targetlump.start, targetlump.length - 1); XMLUtil.dumpAttributes(attrcopy, xmlw); pos.print(">"); }
public void replaceBody(String value) { XMLUtil.dumpAttributes(attrcopy, xmlw); if (!iselide) { pos.print(">"); } xmlw.write(value); closeTag(); }
public void replaceAttributesOpen() { if (iselide) { replaceAttributes(); } else { XMLUtil.dumpAttributes(attrcopy, xmlw); pos.print(isEmpty() ? "/>" : ">"); nextpos = endopen.lumpindex + 1; } }
XMLUtil.dumpAttributes(trc.attrcopy, trc.xmlw); if (trc.isEmpty() && body == null) { trc.pos.print("/>");
XMLUtil.dumpAttributes(attrcopy, trc.xmlw); trc.pos.print(">"); for (int i = 0; i < value.size(); ++i) { XMLUtil.dumpAttributes(attrcopy, xmlw); if (ishtmlselect) { pos.print(">\n"); XMLUtil.dumpAttributes(attrcopy, xmlw); pos.print(">");