Package com.consol.citrus.variable
Class SegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor
- java.lang.Object
-
- com.consol.citrus.variable.SegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor
-
- All Implemented Interfaces:
SegmentVariableExtractor
- Direct Known Subclasses:
SegmentVariableExtractorRegistry.IndexedSegmentVariableExtractor
- Enclosing class:
- SegmentVariableExtractorRegistry
public abstract static class SegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor extends Object implements SegmentVariableExtractor
Base class for segment variable extractors that ensures that an exception is thrown upon no match.
-
-
Constructor Summary
Constructors Constructor Description AbstractSegmentVariableExtractor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ObjectdoExtractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)ObjectextractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)Extract variables from given object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.consol.citrus.variable.SegmentVariableExtractor
canExtract
-
-
-
-
Method Detail
-
extractValue
public final Object extractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)
Description copied from interface:SegmentVariableExtractorExtract variables from given object. Implementations should throw a CitrusRuntimeException- Specified by:
extractValuein interfaceSegmentVariableExtractorobject- the object of which to extract the value
-
doExtractValue
protected abstract Object doExtractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher)
-
-