Class HtmlElementWriter
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.engine.HtmlElementWriter
-
public class HtmlElementWriter extends Object
Simple writer for html elements. Used by the
HtmlDocumentBuilder
.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>
attributes
protected boolean
isSelfClosing
selfClosing means that the element should not be rendered as a start + end tag pair but as a single tag using "/" to close the tag inlineprotected String
tagName
protected String
textContent
-
Constructor Summary
Constructors Constructor Description HtmlElementWriter(String tagName)
HtmlElementWriter(String tagName, boolean isSelfClosing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlElementWriter
attribute(String name, String value)
protected String
escapeQuotes(String attributeValue)
HtmlElementWriter
textContent(String text)
protected void
writeAttributes(HtmlDocumentBuilder.HtmlWriteContext context)
void
writeContent(HtmlDocumentBuilder.HtmlWriteContext context)
protected void
writeEndLine(HtmlDocumentBuilder.HtmlWriteContext context)
void
writeEndTag(HtmlDocumentBuilder.HtmlWriteContext context)
protected void
writeEndTagElement(HtmlDocumentBuilder.HtmlWriteContext context)
protected void
writeLeadingWhitespace(HtmlDocumentBuilder.HtmlWriteContext context)
void
writeStartTag(HtmlDocumentBuilder.HtmlWriteContext context)
protected void
writeStartTagClose(HtmlDocumentBuilder.HtmlWriteContext context)
protected void
writeStartTagOpen(HtmlDocumentBuilder.HtmlWriteContext context)
protected void
writeTextContent(HtmlDocumentBuilder.HtmlWriteContext context)
-
-
-
Method Detail
-
writeStartTag
public void writeStartTag(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeContent
public void writeContent(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeEndTag
public void writeEndTag(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeEndTagElement
protected void writeEndTagElement(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeTextContent
protected void writeTextContent(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeStartTagOpen
protected void writeStartTagOpen(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeAttributes
protected void writeAttributes(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeEndLine
protected void writeEndLine(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeStartTagClose
protected void writeStartTagClose(HtmlDocumentBuilder.HtmlWriteContext context)
-
writeLeadingWhitespace
protected void writeLeadingWhitespace(HtmlDocumentBuilder.HtmlWriteContext context)
-
attribute
public HtmlElementWriter attribute(String name, String value)
-
textContent
public HtmlElementWriter textContent(String text)
-
-