Package org.ametys.cms.transformation
Interface RichTextTransformer
- All Known Implementing Classes:
AbstractRichTextTransformer,DocbookTransformer,HTMLTransformer,HTMLTransformer
public interface RichTextTransformer
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidtransform(String source, ModifiableRichText dest) Deprecated.voidtransformForEditing(RichText source, DataContext dataContext, StringBuilder dest) Transform aRichTextinto aStringBuilder.voidtransformForEditing(ModifiableRichText source, StringBuilder dest) Deprecated.voidtransformForRendering(RichText source, ContentHandler handler) SAXes aRichTextinto aContentHandlerfor rendering purposes.
-
Method Details
-
transform
@Deprecated void transform(String source, ModifiableRichText dest) throws AmetysRepositoryException, IOException Deprecated.usetransform(String, RichText)insteadTransform aStringinto aModifiableRichText.- Parameters:
source- the source.dest- theModifiableRichTextto populate.- Throws:
AmetysRepositoryException- if an error occurs.IOException- if an error occurs.
-
transform
- Parameters:
source- the source.dest- theRichTextto populate.- Throws:
AmetysRepositoryException- if an error occurs.IOException- if an error occurs.
-
transformForEditing
@Deprecated void transformForEditing(ModifiableRichText source, StringBuilder dest) throws AmetysRepositoryException, IOException Deprecated.Transform aModifiableRichTextinto aStringBuilder.- Parameters:
source- the source.dest- theStringBuilderto 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 aRichTextinto aStringBuilder.- Parameters:
source- the source.dataContext- the context of the rich textdest- theStringBuilderto populate.- Throws:
AmetysRepositoryException- if an error occurs.IOException- if an error occurs.
-
transformForRendering
void transformForRendering(RichText source, ContentHandler handler) throws AmetysRepositoryException, SAXException, IOException SAXes aRichTextinto aContentHandlerfor rendering purposes.- Parameters:
source- the source.handler- theStringBuilderto populate.- Throws:
AmetysRepositoryException- if an error occurs.SAXException- if an error occurs.IOException- if an error occurs.
-
transform(String, RichText)instead