com.atlassian.confluence.content.render.xhtml.definition
Class RichTextMacroBody
java.lang.Object
com.atlassian.confluence.content.render.xhtml.definition.RichTextMacroBody
- All Implemented Interfaces:
- MacroBody
public class RichTextMacroBody
- extends Object
- implements MacroBody
Macro body that contains rich text or HTML markup.
RichTextMacroBody
@Deprecated
public RichTextMacroBody(String body)
- Deprecated. since 5.6. Call
withStorage(Streamable) or
withStorageAndTransform(Streamable, Streamable) instead.
- Parameters:
body - the body - assumed to be transformed, but it might not be!
RichTextMacroBody
@Deprecated
public RichTextMacroBody(Streamable body)
- Deprecated. since 5.6. Call
withStorage(Streamable) or
withStorageAndTransform(Streamable, Streamable) instead.
- Parameters:
body - the body - assumed to be transformed, but it might not be!
withStorage
public static RichTextMacroBody withStorage(Streamable storageBody)
withStorageAndTransform
public static RichTextMacroBody withStorageAndTransform(Streamable storageBody,
Streamable transformedBody)
getBodyStream
public Streamable getBodyStream()
- Specified by:
getBodyStream in interface MacroBody
- Returns:
- the macro body as a {code Streamable}. May be transformed, if that is the required format.
- See Also:
MacroBody.getStorageBodyStream(),
MacroBody.getTransformedBodyStream(),
RequiresFormat
getBody
public String getBody()
- Specified by:
getBody in interface MacroBody
- Returns:
- the macro body as a string. May be transformed, if that is the required format.
- See Also:
MacroBody.getStorageBodyStream(),
MacroBody.getTransformedBodyStream(),
RequiresFormat
getTransformedBodyStream
public Streamable getTransformedBodyStream()
- Specified by:
getTransformedBodyStream in interface MacroBody
- Returns:
- the macro body, transformed by the current pipeline (if transformation was enabled). Can be null.
getStorageBodyStream
public Streamable getStorageBodyStream()
- Specified by:
getStorageBodyStream in interface MacroBody
- Returns:
- the storage format of the macro body, without any transforms applied.
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–2015 Atlassian. All rights reserved.