Interface DataDictionary<T>
-
- All Superinterfaces:
InitializingPhase,MessageDirectionAware,MessageProcessor,MessageTransformer,Scoped
public interface DataDictionary<T> extends MessageProcessor, MessageDirectionAware, Scoped, InitializingPhase
Data dictionary interface describes a mechanism to modify message content (payload) with global dictionary elements. Dictionary translates element values to those defined in dictionary. Message construction process is aware of dictionaries in Spring application context so user just has to add dictionary implementation to application context. Dictionary takes part in message construction for inbound and outbound messages in Citrus.- Since:
- 1.4
- Author:
- Christoph Deppisch
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDataDictionary.PathMappingStrategyPossible mapping strategies for identifying matching dictionary items with path comparison.-
Nested classes/interfaces inherited from interface com.consol.citrus.message.MessageProcessor
MessageProcessor.Builder<T extends MessageProcessor,B extends MessageProcessor.Builder<T,B>>
-
-
Field Summary
-
Fields inherited from interface com.consol.citrus.message.MessageProcessor
LOG, RESOURCE_PATH, TYPE_RESOLVER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()Gets the data dictionary name.DataDictionary.PathMappingStrategygetPathMappingStrategy()Gets the path mapping strategy.<R> Rtranslate(T key, R value, TestContext context)Translate value with given path in message content.-
Methods inherited from interface com.consol.citrus.common.InitializingPhase
initialize
-
Methods inherited from interface com.consol.citrus.message.MessageDirectionAware
getDirection
-
Methods inherited from interface com.consol.citrus.message.MessageProcessor
process, transform
-
Methods inherited from interface com.consol.citrus.Scoped
isGlobalScope
-
-
-
-
Method Detail
-
translate
<R> R translate(T key, R value, TestContext context)
Translate value with given path in message content.- Parameters:
value- current valuekey- the key element in message contentcontext- the current test context- Returns:
-
getName
String getName()
Gets the data dictionary name.- Returns:
-
getPathMappingStrategy
DataDictionary.PathMappingStrategy getPathMappingStrategy()
Gets the path mapping strategy.
-
-