Class XsltHelper
java.lang.Object
org.opencastproject.coverimage.impl.xsl.XsltHelper
Helper class to use within the XSLT transformation
-
Method Summary
-
Method Details
-
split
Splits a string into several lines, depending on the maximum allowed characters per line and returns the desired line.- Parameters:
text- Text to split upmaxChars- maximum allowed characters per lineline- line number to return (starting by 1)isLastLine- whether this is the last line used to represent the string. If so, the string will be abbreviated using ellipsis in case the text cannot be represented by the given number of lines- Returns:
- the line or null if the given text is null, the line number is less than 1 or if the desired line does not exist
-