public class ArrayPropertyAccessor extends Object implements PropertyAccessor<Object>
PropertyAccessor interface for interacting with arrays.
Throws exceptions if the index is not an integer or if the index is out of range
for the current array.| Constructor and Description |
|---|
ArrayPropertyAccessor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getValue(NodeEvaluation evaluation,
Object target)
Gets the index specified by the current node from the target array.
|
void |
setValue(NodeEvaluation evaluation,
Object target,
Object value)
Sets the value at the index specified by the current node to the supplied value.
|
public Object getValue(NodeEvaluation evaluation, Object target)
getValue in interface PropertyAccessor<Object>evaluation - the current NodeEvaluation containing the array indextarget - the target arraypublic void setValue(NodeEvaluation evaluation, Object target, Object value)
setValue in interface PropertyAccessor<Object>evaluation - the current NodeEvaluation containing the array indextarget - the target arrayvalue - the value to set, possibly null© Copyright 2005-2006, Stripes Development Team.