Class RichTextMacroBody
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.definition.RichTextMacroBody
-
-
Constructor Summary
Constructors Constructor Description RichTextMacroBody(Streamable body)
Deprecated.since 5.6.RichTextMacroBody(String body)
Deprecated.since 5.6.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getBody()
Streamable
getBodyStream()
Streamable
getStorageBodyStream()
Streamable
getTransformedBodyStream()
int
hashCode()
String
toString()
static RichTextMacroBody
withStorage(Streamable storageBody)
static RichTextMacroBody
withStorageAndTransform(Streamable storageBody, Streamable transformedBody)
-
-
-
Constructor Detail
-
RichTextMacroBody
@Deprecated public RichTextMacroBody(String body)
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 public RichTextMacroBody(Streamable body)
Deprecated.since 5.6. CallwithStorage(Streamable)
orwithStorageAndTransform(Streamable, Streamable)
instead.- Parameters:
body
- the body - assumed to be transformed, but it might not be!
-
-
Method Detail
-
withStorage
public static RichTextMacroBody withStorage(Streamable storageBody)
-
withStorageAndTransform
public static RichTextMacroBody withStorageAndTransform(Streamable storageBody, Streamable transformedBody)
-
getBodyStream
public Streamable 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:
MacroBody.getStorageBodyStream()
,MacroBody.getTransformedBodyStream()
,RequiresFormat
-
getBody
public String getBody()
- Specified by:
getBody
in interfaceMacroBody
- 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 interfaceMacroBody
- Returns:
- the macro body, transformed by the current pipeline (if transformation was enabled). Can be null.
-
getStorageBodyStream
public Streamable getStorageBodyStream()
- Specified by:
getStorageBodyStream
in interfaceMacroBody
- Returns:
- the storage format of the macro body, without any transforms applied.
-
-