com.jrefinery.report.filter
Interface DataTarget

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable
All Known Subinterfaces:
DataFilter
All Known Implementing Classes:
DrawableFilter, Element, FormatFilter, FormatParser, ImageLoadFilter, ImageRefFilter, ResourceFileFilter, ShapeFilter, StringFilter, URLFilter

public interface DataTarget
extends java.io.Serializable, java.lang.Cloneable

A DataTarget is a consumer in the DataProcessing chain. All Elements are DataTargets. Targets query their data from assigned DataSources.

Author:
Thomas Morgner

Method Summary
 java.lang.Object clone()
          Clones this datatarget.
 DataSource getDataSource()
          Returns the assigned DataSource for this Target.
 void setDataSource(DataSource ds)
          Assigns a DataSource for this Target.
 

Method Detail

getDataSource

public DataSource getDataSource()
Returns the assigned DataSource for this Target.

Returns:
The datasource.

setDataSource

public void setDataSource(DataSource ds)
Assigns a DataSource for this Target.

Parameters:
ds - The data source.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clones this datatarget.

Returns:
a clone of the datatarget.
Throws:
java.lang.CloneNotSupportedException - this should never happen.