org.pentaho.reporting.engine.classic.core.filter.types
Class ExternalElementType

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.filter.types.ExternalElementType
All Implemented Interfaces:
Serializable, Cloneable, DataSource, ElementType

public class ExternalElementType
extends Object
implements ElementType

Todo: Document me!

Date: 01.06.2009 Time: 13:35:08

Author:
Thomas Morgner.
See Also:
Serialized Form

Field Summary
static ElementType INSTANCE
           
 
Constructor Summary
ExternalElementType()
           
 
Method Summary
 Object clone()
          Clones this DataSource.
 void configureDesignTimeDefaults(Element element, Locale locale)
           
 Object getDesignValue(ExpressionRuntime runtime, Element element)
           
 ElementMetaData getMetaData()
           
 Object getValue(ExpressionRuntime runtime, Element element)
          Returns the current value for the data source.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ElementType INSTANCE
Constructor Detail

ExternalElementType

public ExternalElementType()
Method Detail

configureDesignTimeDefaults

public void configureDesignTimeDefaults(Element element,
                                        Locale locale)
Specified by:
configureDesignTimeDefaults in interface ElementType

getMetaData

public ElementMetaData getMetaData()
Specified by:
getMetaData in interface ElementType

getDesignValue

public Object getDesignValue(ExpressionRuntime runtime,
                             Element element)
Specified by:
getDesignValue in interface ElementType

getValue

public Object getValue(ExpressionRuntime runtime,
                       Element element)
Returns the current value for the data source.

Specified by:
getValue in interface DataSource
Parameters:
runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.
element - the element for which the data is computed.
Returns:
the value.

clone

public Object clone()
             throws CloneNotSupportedException
Clones this DataSource.

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