protected void writeAttributes(HtmlWriteContext context) { StringWriter writer = context.getWriter(); for (Entry<String, String> attribute : attributes.entrySet()) { writer.write(" "); writer.write(attribute.getKey()); if(attribute.getValue() != null) { writer.write("=\""); String attributeValue = escapeQuotes(attribute.getValue()); writer.write(attributeValue); writer.write("\""); } } }
protected void writeEndLine(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write("\n"); }
protected void writeAttributes(HtmlWriteContext context) { StringWriter writer = context.getWriter(); for (Entry<String, String> attribute : attributes.entrySet()) { writer.write(" "); writer.write(attribute.getKey()); if(attribute.getValue() != null) { writer.write("=\""); String attributeValue = escapeQuotes(attribute.getValue()); writer.write(attributeValue); writer.write("\""); } } }
protected void writeStartTagOpen(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write("<"); writer.write(tagName); }
protected void writeEndTagElement(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write("</"); writer.write(tagName); writer.write(">"); }
protected void writeStartTagClose(HtmlWriteContext context) { StringWriter writer = context.getWriter(); if(isSelfClosing) { writer.write(" /"); } writer.write(">"); }
protected void writeTextContent(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write(" "); // add additional whitespace writer.write(textContent); }
protected void writeLeadingWhitespace(HtmlWriteContext context) { int stackSize = context.getElementStackSize(); StringWriter writer = context.getWriter(); for (int i = 0; i < stackSize; i++) { writer.write(" "); } }
protected void writeAttributes(HtmlWriteContext context) { StringWriter writer = context.getWriter(); for (Entry<String, String> attribute : attributes.entrySet()) { writer.write(" "); writer.write(attribute.getKey()); if(attribute.getValue() != null) { writer.write("=\""); String attributeValue = escapeQuotes(attribute.getValue()); writer.write(attributeValue); writer.write("\""); } } }
protected void writeEndLine(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write("\n"); }
protected void writeEndLine(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write("\n"); }
protected void writeStartTagClose(HtmlWriteContext context) { StringWriter writer = context.getWriter(); if(isSelfClosing) { writer.write(" /"); } writer.write(">"); }
protected void writeStartTagOpen(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write("<"); writer.write(tagName); }
protected void writeTextContent(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write(" "); // add additional whitespace writer.write(textContent); }
protected void writeStartTagOpen(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write("<"); writer.write(tagName); }
protected void writeTextContent(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write(" "); // add additional whitespace writer.write(textContent); }
protected void writeStartTagClose(HtmlWriteContext context) { StringWriter writer = context.getWriter(); if(isSelfClosing) { writer.write(" /"); } writer.write(">"); }
protected void writeEndTagElement(HtmlWriteContext context) { StringWriter writer = context.getWriter(); writer.write("</"); writer.write(tagName); writer.write(">"); }
protected void writeLeadingWhitespace(HtmlWriteContext context) { int stackSize = context.getElementStackSize(); StringWriter writer = context.getWriter(); for (int i = 0; i < stackSize; i++) { writer.write(" "); } }
protected void writeLeadingWhitespace(HtmlWriteContext context) { int stackSize = context.getElementStackSize(); StringWriter writer = context.getWriter(); for (int i = 0; i < stackSize; i++) { writer.write(" "); } }