org.pm4j.core.pm.impl.pathresolver
Interface PathResolver

All Known Implementing Classes:
ExpressionPathResolver, PassThroughPathResolver, PathResolverBase, PmExpressionPathResolver

public interface PathResolver

Interface for path algorithms that provide access to relatively addressed objects.

Author:
olaf boede

Method Summary
 java.lang.Object getValue(java.lang.Object startObj)
           
 java.lang.Object getValue(java.lang.Object pmParent, java.lang.Object startObj)
           
 boolean isNullAllowed()
           
 void setNullAllowed(boolean allowed)
          Defines if the resolver may return null.
 void setValue(java.lang.Object startObj, java.lang.Object value)
           
 

Method Detail

getValue

java.lang.Object getValue(java.lang.Object startObj)
Parameters:
startObj - The object to start the navigation from.
Returns:
The found value according to the path specification.

getValue

java.lang.Object getValue(java.lang.Object pmParent,
                          java.lang.Object startObj)
Parameters:
pmParent - The instance, used to create the execution context from.
Usually used to provide access to variables.
startObj - The instance to start the evaluation from.
Returns:
The evaluation result.

setValue

void setValue(java.lang.Object startObj,
              java.lang.Object value)
Parameters:
startObj - The object to start the navigation from.
value - The value to set to the field, addressed by the path.

isNullAllowed

boolean isNullAllowed()
Returns:
true if the resolver may return null.

setNullAllowed

void setNullAllowed(boolean allowed)
Defines if the resolver may return null.

Parameters:
allowed -