Package org.ametys.cms.transformation
Interface RichTextTransformer
- All Known Implementing Classes:
AbstractRichTextTransformer
,DocbookTransformer
,HTMLTransformer
public interface RichTextTransformer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
transformForEditing
(RichText source, DataContext dataContext, StringBuilder dest) Transform aRichText
into aStringBuilder
.void
transformForRendering
(RichText source, ContentHandler handler) SAXes aRichText
into aContentHandler
for rendering purposes.
-
Method Details
-
transform
- Parameters:
source
- the source.dest
- theRichText
to populate.- Throws:
AmetysRepositoryException
- if an error occurs.IOException
- if an error occurs.
-
transformForEditing
void transformForEditing(RichText source, DataContext dataContext, StringBuilder dest) throws AmetysRepositoryException, IOException Transform aRichText
into aStringBuilder
.- Parameters:
source
- the source.dataContext
- the context of the rich textdest
- theStringBuilder
to populate.- Throws:
AmetysRepositoryException
- if an error occurs.IOException
- if an error occurs.
-
transformForRendering
void transformForRendering(RichText source, ContentHandler handler) throws AmetysRepositoryException, SAXException, IOException SAXes aRichText
into aContentHandler
for rendering purposes.- Parameters:
source
- the source.handler
- theStringBuilder
to populate.- Throws:
AmetysRepositoryException
- if an error occurs.SAXException
- if an error occurs.IOException
- if an error occurs.
-