public class ListPropertyAccessor extends Object implements PropertyAccessor<List<?>>
PropertyAccessor for interacting with Lists. Automatically
expands the list to make the supplied list index valid for set operations, and suppresses
IndexOutOfBoundsExceptions during get operations.| Constructor and Description |
|---|
ListPropertyAccessor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getValue(NodeEvaluation evaluation,
List<?> list)
Fetches the value stored at the index specified by the current node.
|
void |
setValue(NodeEvaluation evaluation,
List list,
Object value)
Sets the value at the index specified by the current node to the supplied value.
|
public Object getValue(NodeEvaluation evaluation, List<?> list)
getValue in interface PropertyAccessor<List<?>>evaluation - the current node evaluationlist - the target listpublic void setValue(NodeEvaluation evaluation, List list, Object value)
setValue in interface PropertyAccessor<List<?>>evaluation - the current node evaluationlist - the target listvalue - the value to be stored at the specified index© Copyright 2005-2006, Stripes Development Team.