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 TypeMethodDescriptionbooleangetBody()inthashCode()toString()static RichTextMacroBodywithStorage(Streamable storageBody) static RichTextMacroBodywithStorageAndTransform(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:
getBodyStreamin interfaceMacroBody- Returns:
- the macro body as a {code Streamable}. May be transformed, if that is the required format.
- See Also:
-
getBody
-
getTransformedBodyStream
- Specified by:
getTransformedBodyStreamin interfaceMacroBody- Returns:
- the macro body, transformed by the current pipeline (if transformation was enabled). Can be null.
-
getStorageBodyStream
- Specified by:
getStorageBodyStreamin interfaceMacroBody- Returns:
- the storage format of the macro body, without any transforms applied.
-
toString
-
equals
-
hashCode
public int hashCode()
-