Package org.citrusframework.variable
Class SegmentVariableExtractorRegistry.MapVariableExtractor
java.lang.Object
org.citrusframework.variable.SegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor
org.citrusframework.variable.SegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor
org.citrusframework.variable.SegmentVariableExtractorRegistry.MapVariableExtractor
- All Implemented Interfaces:
SegmentVariableExtractor
- Enclosing class:
- SegmentVariableExtractorRegistry
public static class SegmentVariableExtractorRegistry.MapVariableExtractor
extends SegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor
SegmentVariableExtractor that accesses the segment value from a
Map. The extractor uses the segment expression
as key into the map.-
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExtract(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher) Extract variables from given object.protected ObjectdoExtractIndexedValue(TestContext testContext, Object parentObject, VariableExpressionSegmentMatcher matcher) Extract the indexed value from the objectMethods inherited from class org.citrusframework.variable.SegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor
doExtractValueMethods inherited from class org.citrusframework.variable.SegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor
extractValue
-
Field Details
-
INSTANCE
-
-
Method Details
-
doExtractIndexedValue
protected Object doExtractIndexedValue(TestContext testContext, Object parentObject, VariableExpressionSegmentMatcher matcher) Description copied from class:SegmentVariableExtractorRegistry.IndexedSegmentVariableExtractorExtract the indexed value from the object- Specified by:
doExtractIndexedValuein classSegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor- Returns:
-
canExtract
public boolean canExtract(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher) Description copied from interface:SegmentVariableExtractorExtract variables from given object.object- the object of which to extract the value
-