org.eclipse.stardust.engine.core.spi.extensions.runtime
Interface AccessPathEvaluator


public interface AccessPathEvaluator

Version:
$Revision$
Author:
rsauer

Field Summary
static Object UNMODIFIED_HANDLE
          Pseudo value indicating an unmodified access point handle.
 
Method Summary
 Object createDefaultValue(Map attributes)
          Yields the default value used in case of a missing data value.
 Object createInitialValue(Map attributes)
          Yields the initial value for a newly instantiated data values.
 Object evaluate(Map attributes, Object accessPoint, String outPath)
          Evaluates an out data path by applying the outPath expression against the given accessPoint and returning the resulting value.
 Object evaluate(Map attributes, Object accessPoint, String inPath, Object value)
          Evaluates an in data path by applying the inPath expression parametrized with the given value against the given accessPoint and returns the result, if appropriate.
 

Field Detail

UNMODIFIED_HANDLE

static final Object UNMODIFIED_HANDLE
Pseudo value indicating an unmodified access point handle.

Method Detail

evaluate

Object evaluate(Map attributes,
                Object accessPoint,
                String outPath)
Evaluates an out data path by applying the outPath expression against the given accessPoint and returning the resulting value.

Parameters:
attributes - The access point definition's attributes.
accessPoint - The actual access point.
outPath - The dereference path to be applied.
Returns:
The resulting value.

evaluate

Object evaluate(Map attributes,
                Object accessPoint,
                String inPath,
                Object value)
Evaluates an in data path by applying the inPath expression parametrized with the given value against the given accessPoint and returns the result, if appropriate.

Parameters:
attributes - The access point definition's attributes.
accessPoint - The actual access point.
inPath - The dereference path to be used when applying the given value.
value - The new value to be applied to the access point.
Returns:
Either the new access point, or UNMODIFIED_HANDLE if the access point did not change its identity.

createInitialValue

Object createInitialValue(Map attributes)
Yields the initial value for a newly instantiated data values.

Parameters:
attributes - The access point definition's attributes.
Returns:
The requested initial value.

createDefaultValue

Object createDefaultValue(Map attributes)
Yields the default value used in case of a missing data value.

Parameters:
attributes - The access point definition's attributes.
Returns:
The requested default value.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.