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


public interface AccessPathEvaluator

Version:
$Revision$
Author:
rsauer

Field Summary
static java.lang.Object UNMODIFIED_HANDLE
          Pseudo value indicating an unmodified access point handle.
 
Method Summary
 java.lang.Object createDefaultValue(java.util.Map attributes)
          Yields the default value used in case of a missing data value.
 java.lang.Object createInitialValue(java.util.Map attributes)
          Yields the initial value for a newly instantiated data values.
 java.lang.Object evaluate(java.util.Map attributes, java.lang.Object accessPoint, java.lang.String outPath)
          Evaluates an out data path by applying the outPath expression against the given accessPoint and returning the resulting value.
 java.lang.Object evaluate(java.util.Map attributes, java.lang.Object accessPoint, java.lang.String inPath, java.lang.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 java.lang.Object UNMODIFIED_HANDLE
Pseudo value indicating an unmodified access point handle.

Method Detail

evaluate

java.lang.Object evaluate(java.util.Map attributes,
                          java.lang.Object accessPoint,
                          java.lang.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

java.lang.Object evaluate(java.util.Map attributes,
                          java.lang.Object accessPoint,
                          java.lang.String inPath,
                          java.lang.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

java.lang.Object createInitialValue(java.util.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

java.lang.Object createDefaultValue(java.util.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 © 2013 SunGard CSA LLC. All Rights Reserved.