org.inria.ns.reflex.structures
Interface Evaluable

All Known Implementing Classes:
Evaluable.Dual

public interface Evaluable

An Evaluable can evaluate an object thanks to the data set.

Some useful Evaluable are predefined as constants.

Author:
Philippe Poulard

Nested Class Summary
static class Evaluable.Dual
          An evaluable partitioned in 2 half evaluable parts.
 
Field Summary
static Evaluable STRING
          An evaluable that simply evaluate an object to a string.
static Evaluable STRING_LOADER
          An evaluable that evaluate an object to an URI, then load the file and return its content as a string.
static Evaluable URI
          An evaluable that evaluate an object to an URI.
 
Method Summary
 Object getComputedValue(Object o, DataSet dataSet)
          Return the computed value of an object.
 

Field Detail

STRING

static final Evaluable STRING
An evaluable that simply evaluate an object to a string.


URI

static final Evaluable URI
An evaluable that evaluate an object to an URI.


STRING_LOADER

static final Evaluable STRING_LOADER
An evaluable that evaluate an object to an URI, then load the file and return its content as a string.

Method Detail

getComputedValue

Object getComputedValue(Object o,
                        DataSet dataSet)
                        throws ExecutionException,
                               XPathException
Return the computed value of an object.

Parameters:
o - The object to evaluate.
dataSet - The set of datas used for the computation.
Returns:
The computed value.
Throws:
ExecutionException - If the computation can't be performed.
XPathException