public interface FormatConverter
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertToEditorFormat(java.lang.String storageFormat,
com.atlassian.renderer.RenderContext renderContext)
Converts the storage format into the editor format.
|
java.lang.String |
convertToStorageFormat(java.lang.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.
|
java.lang.String |
convertToViewFormat(java.lang.String storageFormat,
com.atlassian.renderer.RenderContext renderContext)
Converts the storage format into the view format.
|
java.lang.String |
validateAndConvertToStorageFormat(ConfluenceActionSupport action,
java.lang.String wysiwygContent,
com.atlassian.renderer.RenderContext renderContext)
Validates, and adds any errors to the action.
|
java.lang.String |
validateAndConvertToStorageFormat(java.lang.String wysiwygContent,
com.atlassian.renderer.RenderContext renderContext)
Validates, throwing exceptions if failures found.
|
java.lang.String validateAndConvertToStorageFormat(ConfluenceActionSupport action, java.lang.String wysiwygContent, com.atlassian.renderer.RenderContext renderContext)
action
- action to add any errors found intowysiwygContent
- renderContext
- java.lang.String validateAndConvertToStorageFormat(java.lang.String wysiwygContent, com.atlassian.renderer.RenderContext renderContext) throws BadRequestException
wysiwygContent
- renderContext
- BadRequestException
java.lang.String convertToStorageFormat(java.lang.String wysiwygContent, com.atlassian.renderer.RenderContext renderContext) throws XhtmlParsingException, XhtmlException
XhtmlParsingException
XhtmlException
java.lang.String convertToEditorFormat(java.lang.String storageFormat, com.atlassian.renderer.RenderContext renderContext)
storageFormat
- renderContext
- java.lang.String convertToViewFormat(java.lang.String storageFormat, com.atlassian.renderer.RenderContext renderContext)
storageFormat
- renderContext
- Copyright © 2003-2014 Atlassian. All Rights Reserved.