|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.interpolation.AbstractValueSource
org.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 | |
---|---|
java.lang.Object |
getValue(java.lang.String expression)
Split the expression into parts, tokenized on the dot ('.') character. |
Methods inherited from class org.codehaus.plexus.interpolation.AbstractValueSource |
---|
addFeedback, addFeedback, clearFeedback, getFeedback |
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |