#set ($result = $d + 2) Result is $result |
italic(String text)This method forces a report to render a given text in the italic style.
| Info |
|---|
| icon | false |
|---|
| title | An example of the italic(String text) method |
|---|
| Code line: The $text.italic($class.name) must provide interface for web services. The output: The BusinessServices must provide interface for web services. |
bold(String text)This method forces a report to render a given text in the bold style.
| Info |
|---|
| icon | false |
|---|
| title | An example of the bold(String text) method |
|---|
| Code line: Method $text.bold($operator.name) must be implemented by implementation class. The output: Method doService must be implemented by implementation class. |
underline(String text)This method forces a report to render a given text in the underlined style.
| Info |
|---|
| icon | false |
|---|
| title | An example of the underline(String text) method |
|---|
| Code line: Attribute $text.underline ($attribute.name) contains a service name. The output: Attribute serverName contains a service name. |
html(String text)This method forces a report to render a given text as HTML.
| Info |
|---|
| icon | false |
|---|
| title | An example of the html(String text) method |
|---|
| Code line: $text.html('<ul><li>A</li><li>B</li></ul>')The output: |
For more information on supported HTML tags, see Appendix D: HTML Tag Support.
getString(String text)This methods converts text from RTF to a Java String.
| Info |
|---|
| icon | false |
|---|
| title | An example of the getString(String text) method |
|---|
| Code line: #set ($str = $text.getString("Ubersetzer"))The output: Ubersetzer |
equals(String str1, String str2)This method compares two strings. The result will be true if and only if str1 represents the same sequence of characters as str2 does. This method supports RTF text comparison.
| Info |
|---|
| icon | false |
|---|
| title | An example of the equals(String str1, String str2) method |
|---|
| Code line: #set ($str = $text.getString("Ubersetzer")) #if ($text.equals($str, "Ubersetzer")) true #end |
getPureText( |