Class AbstractDataDictionary<T>
java.lang.Object
org.citrusframework.message.AbstractMessageProcessor
org.citrusframework.variable.dictionary.AbstractDataDictionary<T>
- All Implemented Interfaces:
InitializingPhase,MessageDirectionAware,MessageProcessor,MessageTransformer,MessageTypeSelector,Scoped,DataDictionary<T>
public abstract class AbstractDataDictionary<T>
extends AbstractMessageProcessor
implements DataDictionary<T>
Abstract data dictionary implementation provides global scope handling.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.variable.dictionary.DataDictionary
DataDictionary.PathMappingStrategyNested classes/interfaces inherited from interface org.citrusframework.message.MessageProcessor
MessageProcessor.Builder<T extends MessageProcessor,B extends MessageProcessor.Builder<T, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Resourcemapping file resourceKnown mappings to this dictionaryFields inherited from interface org.citrusframework.message.MessageProcessor
RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <V> VconvertIfNecessary(String value, V originalValue, TestContext context) Convert to original value type if necessary.Gets the mapping file resource.Gets the mappings.getName()voidbooleanvoidsetGlobalScope(boolean scope) Sets the global scope property.voidsetMappingFile(Resource mappingFile) Sets the mapping file resource.voidsetMappings(Map<String, String> mappings) Sets the mappings.voidSets the data dictionary name.voidsetPathMappingStrategy(DataDictionary.PathMappingStrategy pathMappingStrategy) Sets the path mapping strategy.Methods inherited from class org.citrusframework.message.AbstractMessageProcessor
getDirection, process, processMessage, setDirection, supportsMessageTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.variable.dictionary.DataDictionary
translateMethods inherited from interface org.citrusframework.message.MessageDirectionAware
getDirectionMethods inherited from interface org.citrusframework.message.MessageProcessor
process, transform
-
Field Details
-
mappings
Known mappings to this dictionary -
mappingFile
mapping file resource
-
-
Constructor Details
-
AbstractDataDictionary
public AbstractDataDictionary()
-
-
Method Details
-
convertIfNecessary
Convert to original value type if necessary.- Type Parameters:
V-- Parameters:
value-originalValue-context-- Returns:
-
initialize
public void initialize()- Specified by:
initializein interfaceInitializingPhase
-
getName
- Specified by:
getNamein interfaceDataDictionary<T>- Overrides:
getNamein classAbstractMessageProcessor
-
setName
Sets the data dictionary name.- Parameters:
name-
-
isGlobalScope
public boolean isGlobalScope()- Specified by:
isGlobalScopein interfaceScoped
-
setGlobalScope
public void setGlobalScope(boolean scope) Sets the global scope property.- Parameters:
scope-
-
setMappings
Sets the mappings.- Parameters:
mappings-
-
getMappings
Gets the mappings.- Returns:
-
getMappingFile
Gets the mapping file resource.- Returns:
-
setMappingFile
Sets the mapping file resource.- Parameters:
mappingFile-
-
getPathMappingStrategy
- Specified by:
getPathMappingStrategyin interfaceDataDictionary<T>
-
setPathMappingStrategy
Sets the path mapping strategy.- Parameters:
pathMappingStrategy-
-