public interface FormatConverter
Modifier and Type | Method and Description |
---|---|
String |
convertToEditorFormat(String storageFormat,
com.atlassian.renderer.RenderContext renderContext)
Converts the storage format into the editor format.
|
RenderResult |
convertToEditorFormatWithResult(String storageFormat,
com.atlassian.renderer.RenderContext renderContext)
Converts the storage format into the editor format.
|
String |
convertToStorageFormat(String wysiwygContent,
com.atlassian.renderer.RenderContext renderContext)
Returns the content that has been submitted as part of a user's attempt to add new content or edit existing content.
|
String |
convertToViewFormat(String storageFormat,
com.atlassian.renderer.RenderContext renderContext)
Converts the storage format into the view format.
|
String |
validateAndConvertToStorageFormat(ConfluenceActionSupport action,
String wysiwygContent,
com.atlassian.renderer.RenderContext renderContext)
Validates, and adds any errors to the action.
|
String |
validateAndConvertToStorageFormat(String wysiwygContent,
com.atlassian.renderer.RenderContext renderContext)
Validates, throwing exceptions if failures found.
|
String validateAndConvertToStorageFormat(ConfluenceActionSupport action, String wysiwygContent, com.atlassian.renderer.RenderContext renderContext)
action
- action to add any errors found intowysiwygContent
- renderContext
- String validateAndConvertToStorageFormat(String wysiwygContent, com.atlassian.renderer.RenderContext renderContext) throws BadRequestException
wysiwygContent
- renderContext
- BadRequestException
String convertToStorageFormat(String wysiwygContent, com.atlassian.renderer.RenderContext renderContext) throws XhtmlParsingException, XhtmlException
XhtmlParsingException
XhtmlException
String convertToEditorFormat(String storageFormat, com.atlassian.renderer.RenderContext renderContext)
storageFormat
- renderContext
- RenderResult convertToEditorFormatWithResult(String storageFormat, com.atlassian.renderer.RenderContext renderContext)
storageFormat
- renderContext
- Copyright © 2003–2017 Atlassian. All rights reserved.