com.atlassian.confluence.content.render.xhtml.definition
Class PlainTextMacroBody

java.lang.Object
  extended by 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.


Constructor Summary
PlainTextMacroBody(String body)
           
 
Method Summary
 boolean equals(Object o)
           
 String getBody()
           
 Streamable getBodyStream()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlainTextMacroBody

public PlainTextMacroBody(String body)
Method Detail

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


Confluence is developed by Atlassian.