public class ArrayPropertyAccessor extends java.lang.Object implements PropertyAccessor<java.lang.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 |
---|---|
java.lang.Object |
getValue(NodeEvaluation evaluation,
java.lang.Object target)
Gets the index specified by the current node from the target array.
|
void |
setValue(NodeEvaluation evaluation,
java.lang.Object target,
java.lang.Object value)
Sets the value at the index specified by the current node to the supplied value.
|
public java.lang.Object getValue(NodeEvaluation evaluation, java.lang.Object target)
getValue
in interface PropertyAccessor<java.lang.Object>
evaluation
- the current NodeEvaluation containing the array indextarget
- the target arraypublic void setValue(NodeEvaluation evaluation, java.lang.Object target, java.lang.Object value)
setValue
in interface PropertyAccessor<java.lang.Object>
evaluation
- the current NodeEvaluation containing the array indextarget
- the target arrayvalue
- the value to set, possibly null? Copyright 2005-2006, Stripes Development Team.