org.jfree.report.function.numeric
public class: IsPositiveExpression [javadoc |
source]
java.lang.Object
org.jfree.report.function.AbstractExpression
org.jfree.report.function.numeric.IsPositiveExpression
All Implemented Interfaces:
Expression, Serializable
Deprecated! This - can be replaced by a formula.
Checks whether the column specified by the field name contains a positive number.
| Methods from org.jfree.report.function.AbstractExpression: |
|---|
|
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
| Method from org.jfree.report.function.numeric.IsPositiveExpression Detail: |
public String getField() {
return field;
} Deprecated!Returns the name of the field from where to read the number. |
public Object getValue() {
final Object o = getDataRow().get(getField());
if (o instanceof Number == false)
{
return Boolean.FALSE;
}
final Number n = (Number) o;
if (n.doubleValue() >= 0)
{
return Boolean.TRUE;
}
return Boolean.FALSE;
} Deprecated!Checks whether the column specified by the field name contains a positive number. Non-numeric values are not
compared and result in Boolean.FALSE. |
public void setField(String field) {
this.field = field;
} Deprecated!Defines the name of the field from where to read the number. |