|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.ConvertToNumberExpression
public class ConvertToNumberExpression
Parses a string into a number using the given decimal-format.
DecimalFormat
,
Serialized FormConstructor Summary | |
---|---|
ConvertToNumberExpression()
Default Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
---|
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvertToNumberExpression()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |