Interface ObjectInterpolator
-
- All Known Implementing Classes:
FieldBasedObjectInterpolator
public interface ObjectInterpolatorTraverses an object graph and uses anInterpolatorinstance to resolve any String values in the graph.- Author:
- jdcasey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.ListgetWarnings()Retrieve theListof warnings (ObjectInterpolationWarninginstances) generated during the last interpolation execution.booleanhasWarnings()Returns true if the last interpolation execution generated warnings.voidinterpolate(java.lang.Object target, BasicInterpolator interpolator)Traverse the object graph from the given starting point and interpolate any Strings found in that graph using the givenInterpolator.voidinterpolate(java.lang.Object target, BasicInterpolator interpolator, RecursionInterceptor recursionInterceptor)Traverse the object graph from the given starting point and interpolate any Strings found in that graph using the givenInterpolator.
-
-
-
Method Detail
-
interpolate
void interpolate(java.lang.Object target, BasicInterpolator interpolator) throws InterpolationExceptionTraverse the object graph from the given starting point and interpolate any Strings found in that graph using the givenInterpolator.- Parameters:
target- The starting point of the object graph to traverseinterpolator- TheInterpolatorused to resolve any Strings encountered during traversal.- Throws:
InterpolationException- in case of an error.
-
interpolate
void interpolate(java.lang.Object target, BasicInterpolator interpolator, RecursionInterceptor recursionInterceptor) throws InterpolationExceptionTraverse the object graph from the given starting point and interpolate any Strings found in that graph using the givenInterpolator.- Parameters:
target- The starting point of the object graph to traverseinterpolator- TheInterpolatorused to resolve any Strings encountered during traversal.recursionInterceptor- TheRecursionInterceptorused to detect cyclical expressions in the graph- Throws:
InterpolationException- in case of an error.
-
hasWarnings
boolean hasWarnings()
Returns true if the last interpolation execution generated warnings.- Returns:
- true/false.
-
getWarnings
java.util.List getWarnings()
Retrieve theListof warnings (ObjectInterpolationWarninginstances) generated during the last interpolation execution.- Returns:
- The list of warnings.
-
-