FixedValueSource
public class ObjectBasedValueSource extends java.lang.Object implements FixedValueSource
Constructor | Description |
---|---|
ObjectBasedValueSource(java.lang.Object root) |
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 | Description |
---|---|---|
java.lang.Object |
getValue(java.lang.String expression,
InterpolationState interpolationState) |
Split the expression into parts, tokenized on the dot ('.') character.
|
public ObjectBasedValueSource(java.lang.Object root)
root
- The root of the graph.public java.lang.Object getValue(java.lang.String expression, InterpolationState interpolationState)
NOTE: The object-graph nagivation actually takes place via the
ReflectionValueExtractor
class.
getValue
in interface FixedValueSource
expression
- The expression.interpolationState
- InterpolationState
.Copyright © 2018. All rights reserved.