Package de.hsh.graja.comment.transform
Class CommentTransformator
- java.lang.Object
-
- de.hsh.graja.comment.transform.CommentTransformator
-
-
Constructor Summary
Constructors Constructor Description CommentTransformator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
transform(Collection<? extends Content> comments, ApplicabilityFilter filter, CommentRepresentation repr, Boolean useJavascript, String namespace)
Creates a representation of all or a filtered subset of the comments passed as the parametercomments
.
-
-
-
Method Detail
-
transform
public static String transform(Collection<? extends Content> comments, ApplicabilityFilter filter, CommentRepresentation repr, Boolean useJavascript, String namespace)
Creates a representation of all or a filtered subset of the comments passed as the parametercomments
.- Parameters:
comments
- this is the collection of comments to be transformed to HTML or plain textfilter
- null means no filteringrepr
- the target representationuseJavascript
- may be null meaning no javascript in case of HTML.namespace
- link anchors are rendered in this namespace (optional)- Returns:
- the transformed comment as plain text or HTML
-
-