|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.wysiwyg.control.WysiwygContentTransformer
public class WysiwygContentTransformer
This class provides method to transform wysiwyg content source into other wysiwyg formats.
| Method Summary | ||
|---|---|---|
WysiwygContentTransformer |
modifyImageUrlAccordingToHtmlSizeDirective()
Transforms all URL of images to take into account theirs display size. |
|
static WysiwygContentTransformer |
on(String wysiwygContent)
An instance of WYSIWYG transformer on the given content. |
|
MailContentProcess.MailResult |
toMailContent()
Transforms all referenced content links in order to be handled in mail sending. |
|
String |
transform()
Default method in order to apply all the transformation directives and recover immediately the result as string. |
|
|
transform(WysiwygContentTransformerProcess<TYPED_RESULT> process)
Applies all the transformation directives and finally processing the given treatment. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WysiwygContentTransformer on(String wysiwygContent)
wysiwygContent - the wysiwyg content.
public WysiwygContentTransformer modifyImageUrlAccordingToHtmlSizeDirective()
WysiwygContentTransformer.public String transform()
public <TYPED_RESULT> TYPED_RESULT transform(WysiwygContentTransformerProcess<TYPED_RESULT> process)
throws Exception
TYPED_RESULT - the result type of the process.process - the process to execute after all the directives.
Exception
public MailContentProcess.MailResult toMailContent()
throws Exception
modifyImageUrlAccordingToHtmlSizeDirective() is applied.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||