|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.fill.JREvaluator
org.norther.tammi.sprig.jasper.model.ReportEvaluator
public abstract class ReportEvaluator
An extended report calculator with variable support.
Constructor Summary | |
---|---|
ReportEvaluator()
Construcs a new evalautor. |
Method Summary | |
---|---|
String |
concat(Object first,
Object second)
Concatenates objects. |
Number |
fixed(Object value)
Returns the object as a fixed number. |
String |
format(Date value)
Formats a date. |
String |
format(Date value,
String pattern)
Formats a date with a pattern. |
String |
format(Number value)
Formats a number. |
String |
format(Number value,
String pattern)
Formats a number with a pattern. |
String |
format(String value)
Formats a string. |
String |
format(String qualifier,
String value)
Formats a qualified string. |
String |
getDescription(Variable var,
String name)
Gets the named attribute description. |
String |
getDetail(Variable var,
String name)
Gets the named attribute detail. |
String |
getGroup(Variable var,
String name)
Gets the named attribute group. |
protected ReportModel |
getReportModel()
Gets the report model. |
Object |
getValue(Variable var,
String name)
Gets the named attribute value. |
void |
init(Map params,
Map fields,
Map vars,
net.sf.jasperreports.engine.fill.JRFillParameter bundle,
byte rmtype)
|
Double |
percent(Object value,
Object total)
Calculates the specified percentage. |
String |
toString(Variable var,
String name)
Returns the named attribute value as a string. |
String[] |
toStrings(Variable var,
String name)
Returns the named attribute values as a string array. |
Methods inherited from class net.sf.jasperreports.engine.fill.JREvaluator |
---|
customizedInit, evaluate, evaluate, evaluateEstimated, evaluateEstimated, evaluateOld, evaluateOld, handleMissingResource, msg, msg, msg, str |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReportEvaluator()
Method Detail |
---|
public void init(Map params, Map fields, Map vars, net.sf.jasperreports.engine.fill.JRFillParameter bundle, byte rmtype) throws net.sf.jasperreports.engine.JRException
init
in class net.sf.jasperreports.engine.fill.JREvaluator
net.sf.jasperreports.engine.JRException
public String concat(Object first, Object second)
first
- the first string.second
- the second string.
public Number fixed(Object value)
value
- the object.
public Double percent(Object value, Object total)
value
- the value.total
- the total.
public Object getValue(Variable var, String name) throws Exception
var
- the variable.name
- the attribute.
Exception
- on errors.public String toString(Variable var, String name) throws Exception
var
- the variable.name
- the attribute.
Exception
- on errors.public String[] toStrings(Variable var, String name) throws Exception
var
- the variable.name
- the attribute.
Exception
- on errors.public String getDescription(Variable var, String name)
var
- the variable.name
- the attribute.
public String getGroup(Variable var, String name)
var
- the variable.name
- the attribute.
public String getDetail(Variable var, String name)
var
- the variable.name
- the attribute.
public String format(String value)
value
- the string.
public String format(String qualifier, String value)
qualifier
- the qualifier.value
- the string.
public String format(Number value)
value
- the number.
public String format(Number value, String pattern)
value
- the number.pattern
- the pattern.
public String format(Date value)
value
- the date.
public String format(Date value, String pattern)
value
- the date.pattern
- the pattern.
protected ReportModel getReportModel()
IllegalStateException
- is not available.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |