Class HtmlElementWriter
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.engine.HtmlElementWriter
-
public class HtmlElementWriter extends java.lang.Object
Simple writer for html elements. Used by the
HtmlDocumentBuilder
.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.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 java.lang.String
tagName
protected java.lang.String
textContent
-
Constructor Summary
Constructors Constructor Description HtmlElementWriter(java.lang.String tagName)
HtmlElementWriter(java.lang.String tagName, boolean isSelfClosing)
-
Method Summary
-
-
-
Field Detail
-
tagName
protected java.lang.String tagName
-
isSelfClosing
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 inline
-
textContent
protected java.lang.String textContent
-
attributes
protected java.util.Map<java.lang.String,java.lang.String> attributes
-
-
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)
-
escapeQuotes
protected java.lang.String escapeQuotes(java.lang.String attributeValue)
-
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(java.lang.String name, java.lang.String value)
-
textContent
public HtmlElementWriter textContent(java.lang.String text)
-
-