public abstract class CommonTemplateMarkupOutputModel<MO extends CommonTemplateMarkupOutputModel<MO>> extends java.lang.Object implements TemplateMarkupOutputModel<MO>
TemplateMarkupOutputModel
-s that belong to a
CommonMarkupOutputFormat
subclass format.
Thread-safe after proper publishing. Calculated fields (typically, the markup calculated from plain text) might will be re-calculated for multiple times if accessed from multiple threads (this only affects performance, not functionality).
NOTHING
Modifier | Constructor and Description |
---|---|
protected |
CommonTemplateMarkupOutputModel(java.lang.String plainTextContent,
java.lang.String markupContent)
A least one of the parameters must be non-
null ! |
Modifier and Type | Method and Description |
---|---|
abstract CommonMarkupOutputFormat<MO> |
getOutputFormat()
Returns the singleton
OutputFormat object that implements the operations for the "markup output" value. |
java.lang.String |
toString()
Returns something like {@code "markup(format=HTML, markup=
|
protected CommonTemplateMarkupOutputModel(java.lang.String plainTextContent, java.lang.String markupContent)
null
!public abstract CommonMarkupOutputFormat<MO> getOutputFormat()
TemplateMarkupOutputModel
OutputFormat
object that implements the operations for the "markup output" value.getOutputFormat
in interface TemplateMarkupOutputModel<MO extends CommonTemplateMarkupOutputModel<MO>>
public java.lang.String toString()
"markup(format=HTML, markup=<p>foo</p>)"
; where the first parameter is
OutputFormat.getName()
, and the second is the content, that's prefixed with markup=
or plainText=
, depending on the way the content is internally stored.toString
in class java.lang.Object