Class RichTextMacroBody
java.lang.Object
com.atlassian.confluence.content.render.xhtml.definition.RichTextMacroBody
- All Implemented Interfaces:
MacroBody
Macro body that contains rich text or HTML markup.
-
Constructor Summary
ConstructorsConstructorDescriptionRichTextMacroBody
(Streamable body) Deprecated.since 5.6.RichTextMacroBody
(String body) Deprecated.since 5.6. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBody()
int
hashCode()
toString()
static RichTextMacroBody
withStorage
(Streamable storageBody) static RichTextMacroBody
withStorageAndTransform
(Streamable storageBody, Streamable transformedBody)
-
Constructor Details
-
RichTextMacroBody
Deprecated.since 5.6. CallwithStorage(Streamable)
orwithStorageAndTransform(Streamable, Streamable)
instead.- Parameters:
body
- the body - assumed to be transformed, but it might not be!
-
RichTextMacroBody
Deprecated.since 5.6. CallwithStorage(Streamable)
orwithStorageAndTransform(Streamable, Streamable)
instead.- Parameters:
body
- the body - assumed to be transformed, but it might not be!
-
-
Method Details
-
withStorage
-
withStorageAndTransform
public static RichTextMacroBody withStorageAndTransform(Streamable storageBody, Streamable transformedBody) -
getBodyStream
- Specified by:
getBodyStream
in interfaceMacroBody
- Returns:
- the macro body as a {code Streamable}. May be transformed, if that is the required format.
- See Also:
-
getBody
-
getTransformedBodyStream
- Specified by:
getTransformedBodyStream
in interfaceMacroBody
- Returns:
- the macro body, transformed by the current pipeline (if transformation was enabled). Can be null.
-
getStorageBodyStream
- Specified by:
getStorageBodyStream
in interfaceMacroBody
- Returns:
- the storage format of the macro body, without any transforms applied.
-
toString
-
equals
-
hashCode
public int hashCode()
-