org.pentaho.reporting.engine.classic.core.modules.misc.datafactory
Class RhinoValueConverter

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.RhinoValueConverter
All Implemented Interfaces:
ScriptValueConverter

public class RhinoValueConverter
extends Object
implements ScriptValueConverter

In case we do not run on a JDK 1.6 from Oracle, the "sun" name-space may not be available. We shield ourselves via dynamic class loading.


Constructor Summary
RhinoValueConverter()
           
 
Method Summary
 Object convert(Object o)
          Attempts to convert a script-engine internal value to a pure java value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RhinoValueConverter

public RhinoValueConverter()
Method Detail

convert

public Object convert(Object o)
Description copied from interface: ScriptValueConverter
Attempts to convert a script-engine internal value to a pure java value. It is important to return null for all values that cannot be converted by this implementation to let other implementations have its turn.

Specified by:
convert in interface ScriptValueConverter
Parameters:
o - the value to be converted.
Returns:
the converted value or null if the value is not convertible.