In general, a report can be rendered in various ways: HTML, XML, plain text. Each of these styles has different needs for escaping special characters. This method returns a {@link SafeText}, which can escape characters in various ways.
This method applies the following policies to get the unescaped text :
Type | Action |
---|---|
SafeText | use {@link SafeText#getRawString()} |
Id | use {@link Id#getRawString()} |
Code | use {@link Code#getText()}.getRawString() |
hirondelle.web4.model.DateTime | apply {@link DateConverter#formatEyeFriendlyDateTime(DateTime,Locale)} |
java.util.Date | apply {@link DateConverter#formatEyeFriendly(Date,Locale,TimeZone)} |
BigDecimal | use {@link #getBigDecimalDisplayFormat} |
Decimal | use {@link #getBigDecimalDisplayFormat} on decimal.getAmount() |
Boolean | use {@link #getBooleanDisplayText} |
Integer | use {@link #getIntegerReportDisplayFormat} |
Long | use {@link #getIntegerReportDisplayFormat} |
Locale | use {@link Locale#getDisplayName(java.util.Locale)} |
TimeZone | use {@link TimeZone#getDisplayName(boolean,int,java.util.Locale)} (with no daylight savings hour, and in the SHORT style |
..other... | use toString, and pass result to constructor of {@link SafeText}. |
In addition, the value returned by {@link #getEmptyOrNullText} is used if :
|
|