|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
org.pentaho.reporting.engine.classic.core.filter.templates.ResourceFieldTemplate
public class ResourceFieldTemplate
A resource field template, which reads a String value from a ResourceBundle.
| Constructor Summary | |
|---|---|
ResourceFieldTemplate()
Creates a new template. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones the template. |
String |
getField()
Returns the field name. |
String |
getFormula()
Returns the formula used to compute the value of the data source. |
String |
getNullValue()
Returns the string that represents a null value. |
String |
getResourceIdentifier()
Returns the resource class name. |
Object |
getValue(ExpressionRuntime runtime,
Element element)
Returns the current value for the data source. |
void |
setField(String field)
Sets the field name. |
void |
setFormula(String formula)
Defines the formula used to compute the value of this data source. |
void |
setNullValue(String nullValue)
Sets the string that represents a null value. |
void |
setResourceIdentifier(String resourceClassName)
Sets the resource class name. |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate |
|---|
getInstance, getName, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceFieldTemplate()
| Method Detail |
|---|
public String getField()
public void setField(String field)
field - the field name.public String getFormula()
public void setFormula(String formula)
formula - the formula for the data source.public String getResourceIdentifier()
public void setResourceIdentifier(String resourceClassName)
throws MissingResourceException
resourceClassName - the resource class name.
MissingResourceException - if the resource is missing.public String getNullValue()
null value.
null value.public void setNullValue(String nullValue)
null value.
nullValue - the string that represents a null value.
public Object getValue(ExpressionRuntime runtime,
Element element)
runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of
this filter.element -
public Object clone()
throws CloneNotSupportedException
clone in interface DataSourceclone in class AbstractTemplateCloneNotSupportedException - this should never happen.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||