public class ResourceLabelTemplate extends AbstractTemplate
Constructor and Description |
---|
ResourceLabelTemplate()
Creates a new template.
|
Modifier and Type | Method and Description |
---|---|
ResourceLabelTemplate |
clone()
Clones the template.
|
String |
getContent()
Returns the content.
|
String |
getNullValue()
Returns the string that represents a
null value. |
String |
getResourceIdentifier()
Returns the resource class name.
|
Object |
getValue(ExpressionRuntime runtime,
ReportElement element)
Returns the current value for the data source.
|
void |
setContent(String content)
Sets the content.
|
void |
setNullValue(String nullValue)
Sets the string that represents a
null value. |
void |
setResourceIdentifier(String resourceClassName)
Sets the resource class name.
|
getInstance, getName, setName
public String getResourceIdentifier()
public void setResourceIdentifier(String resourceClassName) throws MissingResourceException
resourceClassName
- the class name.MissingResourceException
- if the resource is missing.NullPointerException
- if the resource class name is null.public void setContent(String content)
content
- the content.public String getContent()
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, ReportElement element)
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this
filter.element
- public ResourceLabelTemplate clone() throws CloneNotSupportedException
clone
in interface DataSource
clone
in class AbstractTemplate
CloneNotSupportedException
- this should never happen.