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()
           
 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

getBody

public String getBody()
Specified by:
getBody in interface MacroBody
Returns:
the macro body

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


Copyright © 2003-2012 Atlassian. All Rights Reserved.