Package com.consol.citrus.variable
Class SegmentVariableExtractorRegistry.MapVariableExtractor
- java.lang.Object
-
- com.consol.citrus.variable.SegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor
-
- com.consol.citrus.variable.SegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor
-
- com.consol.citrus.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 aMap. The extractor uses the segment expression as key into the map.
-
-
Field Summary
Fields Modifier and Type Field Description static SegmentVariableExtractorRegistry.MapVariableExtractorINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExtract(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 object-
Methods inherited from class com.consol.citrus.variable.SegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor
doExtractValue
-
Methods inherited from class com.consol.citrus.variable.SegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor
extractValue
-
-
-
-
Field Detail
-
INSTANCE
public static SegmentVariableExtractorRegistry.MapVariableExtractor INSTANCE
-
-
Method Detail
-
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
-
-