public class ObjectBasedValueSource extends AbstractValueSource
|Constructor and Description|
Construct a new value source, using the supplied object as the root from which to start, and using expressions split at the dot ('.') to navigate the object graph beneath this root.
|Modifier and Type||Method and Description|
Split the expression into parts, tokenized on the dot ('.') character.
addFeedback, addFeedback, clearFeedback, getFeedback
public ObjectBasedValueSource(Object root)
root- the root of the graph.
Split the expression into parts, tokenized on the dot ('.') character. Then, starting at the root object contained in this value source, apply each part to the object graph below this root, using either 'getXXX()' or 'isXXX()' accessor types to resolve the value for each successive expression part. Finally, return the result of the last expression part's resolution.
NOTE: The object-graph nagivation actually takes place via the
expression- The string expression.
Copyright © 2001–2018 Codehaus Plexus. All rights reserved.