Class HtmlDocumentBuilder
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.engine.HtmlDocumentBuilder
-
public class HtmlDocumentBuilder extends java.lang.Object
The
HtmlDocumentBuilder
is part of theHtmlFormEngine
and maintains a stack of element which are written out to aStringWriter
.Actual writing of the html elements is delegated to the
HtmlElementWriter
.- Author:
- Daniel Meyer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
HtmlDocumentBuilder.HtmlWriteContext
-
Field Summary
Fields Modifier and Type Field Description protected HtmlDocumentBuilder.HtmlWriteContext
context
protected java.util.Deque<HtmlElementWriter>
elements
protected java.io.StringWriter
writer
-
Constructor Summary
Constructors Constructor Description HtmlDocumentBuilder(HtmlElementWriter documentElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlDocumentBuilder
endElement()
java.lang.String
getHtmlString()
HtmlDocumentBuilder
startElement(HtmlElementWriter renderer)
-
-
-
Field Detail
-
context
protected HtmlDocumentBuilder.HtmlWriteContext context
-
elements
protected java.util.Deque<HtmlElementWriter> elements
-
writer
protected java.io.StringWriter writer
-
-
Constructor Detail
-
HtmlDocumentBuilder
public HtmlDocumentBuilder(HtmlElementWriter documentElement)
-
-
Method Detail
-
startElement
public HtmlDocumentBuilder startElement(HtmlElementWriter renderer)
-
endElement
public HtmlDocumentBuilder endElement()
-
getHtmlString
public java.lang.String getHtmlString()
-
-