com.atlassian.confluence.content.render.xhtml.definition
Class PlainTextMacroBody
java.lang.Object
com.atlassian.confluence.content.render.xhtml.definition.PlainTextMacroBody
- All Implemented Interfaces:
- MacroBody
public class PlainTextMacroBody
- extends Object
- implements MacroBody
Holds plain text and preserves white space.
When presented for use in the editor, HTML content will be escaped.
When presented for use in storage, the body will be wrapped in a CDATA section.
PlainTextMacroBody
public PlainTextMacroBody(String body)
getBodyStream
public Streamable getBodyStream()
- Specified by:
getBodyStream
in interface MacroBody
- Returns:
- the macro body
getBody
public String getBody()
- Specified by:
getBody
in interface MacroBody
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object