|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.interpolation.ObjectBasedValueSource
public class ObjectBasedValueSource
Wraps an object, providing reflective access to the object graph of which the supplied object is the root. Expressions like 'child.name' will translate into 'rootObject.getChild().getName()' for non-boolean properties, and 'rootObject.getChild().isName()' for boolean properties.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
clearFeedback()
Clear the feedback accumulated by a prior interpolation run. |
java.util.List |
getFeedback()
Return the feedback about resolution failures for a particular expression. |
java.lang.Object |
getValue(java.lang.String expression)
Split the expression into parts, tokenized on the dot ('.') character. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectBasedValueSource(java.lang.Object root)
Method Detail |
---|
public java.lang.Object getValue(java.lang.String expression)
ReflectionValueExtractor
class.
getValue
in interface ValueSource
public java.util.List getFeedback()
getFeedback
in interface FeedbackEnabledValueSource
public void clearFeedback()
clearFeedback
in interface FeedbackEnabledValueSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |