com.jrefinery.report.filter.templates
Class ResourceLabelTemplate

java.lang.Object
  |
  +--com.jrefinery.report.filter.templates.AbstractTemplate
        |
        +--com.jrefinery.report.filter.templates.ResourceLabelTemplate
All Implemented Interfaces:
java.lang.Cloneable, DataSource, java.io.Serializable, Template

public class ResourceLabelTemplate
extends AbstractTemplate

A resource label template.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
ResourceLabelTemplate()
          Creates a new template.
 
Method Summary
 java.lang.Object clone()
          Clones the template.
 java.lang.String getContent()
          Returns the content.
 java.lang.String getNullValue()
          Returns the string that represents a null value.
 java.lang.String getResourceClassName()
          Returns the resource class name.
 java.lang.Object getValue()
          Returns the current value for the data source.
 void setContent(java.lang.String content)
          Sets the content.
 void setNullValue(java.lang.String nullValue)
          Sets the string that represents a null value.
 void setResourceClassName(java.lang.String resourceClassName)
          Sets the resource class name.
 
Methods inherited from class com.jrefinery.report.filter.templates.AbstractTemplate
getInstance, getName, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLabelTemplate

public ResourceLabelTemplate()
Creates a new template.

Method Detail

getResourceClassName

public java.lang.String getResourceClassName()
Returns the resource class name.

Returns:
The resource class name.

setResourceClassName

public void setResourceClassName(java.lang.String resourceClassName)
                          throws java.util.MissingResourceException
Sets the resource class name.

Parameters:
resourceClassName - the class name.
Throws:
java.util.MissingResourceException - if the resource is missing.

setContent

public void setContent(java.lang.String content)
Sets the content.

Parameters:
content - the content.

getContent

public java.lang.String getContent()
Returns the content.

Returns:
The content.

getNullValue

public java.lang.String getNullValue()
Returns the string that represents a null value.

Returns:
The string that represents a null value.

setNullValue

public void setNullValue(java.lang.String nullValue)
Sets the string that represents a null value.

Parameters:
nullValue - The string that represents a null value.

getValue

public java.lang.Object getValue()
Returns the current value for the data source.

Returns:
the value.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clones the template.

Specified by:
clone in interface DataSource
Overrides:
clone in class AbstractTemplate
Returns:
the clone.
Throws:
java.lang.CloneNotSupportedException - this should never happen.