public class ListPropertyAccessor extends java.lang.Object implements PropertyAccessor<java.util.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 |
|---|---|
java.lang.Object |
getValue(NodeEvaluation evaluation,
java.util.List<?> list)
Fetches the value stored at the index specified by the current node.
|
void |
setValue(NodeEvaluation evaluation,
java.util.List list,
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.util.List<?> list)
getValue in interface PropertyAccessor<java.util.List<?>>evaluation - the current node evaluationlist - the target listpublic void setValue(NodeEvaluation evaluation, java.util.List list, java.lang.Object value)
setValue in interface PropertyAccessor<java.util.List<?>>evaluation - the current node evaluationlist - the target listvalue - the value to be stored at the specified index? Copyright 2005-2006, Stripes Development Team.