Package com.consol.citrus.variable
Interface SegmentVariableExtractor
-
- All Known Implementing Classes:
SegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor,SegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor,SegmentVariableExtractorRegistry.MapVariableExtractor,SegmentVariableExtractorRegistry.ObjectFieldValueExtractor
public interface SegmentVariableExtractorClass extracting values of segments of VariableExpressions.- Author:
- Thorsten Schlathoelter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanExtract(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)Extract variables from given object.ObjectextractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)Extract variables from given object.
-
-
-
Method Detail
-
canExtract
boolean canExtract(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)
Extract variables from given object.- Parameters:
object- the object of which to extract the valuematcher-
-
extractValue
Object extractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)
Extract variables from given object. Implementations should throw a CitrusRuntimeException- Parameters:
object- the object of which to extract the valuematcher-
-
-