Package org.citrusframework.variable
Class SegmentVariableExtractorRegistry.AbstractSegmentVariableExtractor
java.lang.Object
org.citrusframework.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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectdoExtractValue(TestContext testContext, Object object, VariableExpressionSegmentMatcher matcher) final 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, waitMethods inherited from interface org.citrusframework.variable.SegmentVariableExtractor
canExtract
-
Constructor Details
-
AbstractSegmentVariableExtractor
public AbstractSegmentVariableExtractor()
-
-
Method Details
-
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)
-