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 ClassesModifier and TypeInterfaceDescriptionstatic enumPossible mapping strategies for identifying matching dictionary items with path comparison.Nested classes/interfaces inherited from interface org.citrusframework.message.MessageProcessor
MessageProcessor.Builder<T extends MessageProcessor,B extends MessageProcessor.Builder<T, B>> -
Field Summary
Fields inherited from interface org.citrusframework.message.MessageProcessor
logger, RESOURCE_PATH, TYPE_RESOLVER -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the data dictionary name.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 org.citrusframework.common.InitializingPhase
initializeMethods inherited from interface org.citrusframework.message.MessageDirectionAware
getDirectionMethods inherited from interface org.citrusframework.message.MessageProcessor
process, transformMethods inherited from interface org.citrusframework.Scoped
isGlobalScope
-
Method Details
-
translate
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.
-