public class ConvertToNumberExpression extends AbstractExpression
DecimalFormat
,
Serialized FormConstructor and Description |
---|
ConvertToNumberExpression()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getField()
Returns the name of the data-row column from where to read the string that should be parsed.
|
String |
getFormat()
Returns the DecimalFormat pattern that is used for the parsing.
|
Locale |
getLocale()
Returns the locale that is used for the parsing.
|
Object |
getValue()
Parses the value read from the column specified by the given field-name and tries to parse it into a Number using
the given DecimalFormat-pattern.
|
void |
setField(String field)
Defines the name of the data-row column from where to read the string that should be parsed.
|
void |
setFormat(String format)
Defines the DecimalFormat pattern that is used for the parsing.
|
void |
setLocale(Locale locale)
Defines the locale that is used for the parsing.
|
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
public ConvertToNumberExpression()
public String getField()
public void setField(String field)
field
- the name of the field.public String getFormat()
DecimalFormat
public void setFormat(String format)
format
- the pattern string.DecimalFormat
public Locale getLocale()
public void setLocale(Locale locale)
locale
- the locale.public Object getValue()