Package org.ametys.cms.transformation
Interface RichTextTransformer
-
- All Known Implementing Classes:
AbstractRichTextTransformer
,DocbookTransformer
,HTMLTransformer
,HTMLTransformer
public interface RichTextTransformer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
transform(String source, RichText dest)
void
transform(String source, ModifiableRichText dest)
Deprecated.usetransform(String, RichText)
insteadvoid
transformForEditing(RichText source, DataContext dataContext, StringBuilder dest)
Transform aRichText
into aStringBuilder
.void
transformForEditing(ModifiableRichText source, StringBuilder dest)
Deprecated.void
transformForRendering(RichText source, ContentHandler handler)
SAXes aRichText
into aContentHandler
for rendering purposes.void
transformForRendering(RichText source, ContentHandler handler)
Deprecated.usetransformForRendering(RichText, ContentHandler)
instead
-
-
-
Method Detail
-
transform
@Deprecated void transform(String source, ModifiableRichText dest) throws AmetysRepositoryException, IOException
Deprecated.usetransform(String, RichText)
insteadTransform aString
into aModifiableRichText
.- Parameters:
source
- the source.dest
- theModifiableRichText
to populate.- Throws:
AmetysRepositoryException
- if an error occurs.IOException
- if an error occurs.
-
transform
void transform(String source, RichText dest) throws AmetysRepositoryException, IOException
- Parameters:
source
- the source.dest
- theRichText
to 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 aModifiableRichText
into aStringBuilder
.- Parameters:
source
- the source.dest
- theStringBuilder
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
@Deprecated void transformForRendering(RichText source, ContentHandler handler) throws AmetysRepositoryException, SAXException, IOException
Deprecated.usetransformForRendering(RichText, ContentHandler)
insteadSAXes 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.
-
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.
-
-