| java.lang.Object org.jfree.report.function.AbstractExpression org.jfree.report.function.strings.CapitalizeStringExpression
CapitalizeStringExpression | public class CapitalizeStringExpression extends AbstractExpression (Code) | | A expression that transforms all first letters of a given string into upper-case letters.
author: Thomas Morgner |
Method Summary | |
public String | getField() Returns the name of the datarow-column from where to read the string value. | public Object | getValue() Capitalizes the string that has been read from the defined field. | public boolean | isFirstWordOnly() Returns, whether only the first word should be capitalized. | public void | setField(String field) Defines the name of the datarow-column from where to read the string value. | public void | setFirstWordOnly(boolean firstWordOnly) Defines, whether only the first word should be capitalized. |
CapitalizeStringExpression | public CapitalizeStringExpression()(Code) | | Default constructor.
|
getField | public String getField()(Code) | | Returns the name of the datarow-column from where to read the string value.
the field. |
getValue | public Object getValue()(Code) | | Capitalizes the string that has been read from the defined field.
the value of the function. |
isFirstWordOnly | public boolean isFirstWordOnly()(Code) | | Returns, whether only the first word should be capitalized.
true, if the first word should be capitalized, false if all words should be capitalized. |
setField | public void setField(String field)(Code) | | Defines the name of the datarow-column from where to read the string value.
Parameters: field - the field. |
setFirstWordOnly | public void setFirstWordOnly(boolean firstWordOnly)(Code) | | Defines, whether only the first word should be capitalized.
Parameters: firstWordOnly - true, if the first word should be capitalized, false if all words should be capitalized. |
|
|