Class AbstractDataDictionary<T>
java.lang.Object
org.citrusframework.message.AbstractMessageProcessor
org.citrusframework.variable.dictionary.AbstractDataDictionary<T>
- All Implemented Interfaces:
org.citrusframework.common.InitializingPhase,org.citrusframework.message.MessageDirectionAware,org.citrusframework.message.MessageProcessor,org.citrusframework.message.MessageTransformer,org.citrusframework.message.MessageTypeSelector,org.citrusframework.Scoped,org.citrusframework.variable.dictionary.DataDictionary<T>
public abstract class AbstractDataDictionary<T>
extends org.citrusframework.message.AbstractMessageProcessor
implements org.citrusframework.variable.dictionary.DataDictionary<T>
Abstract data dictionary implementation provides global scope handling.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.variable.dictionary.DataDictionary
org.citrusframework.variable.dictionary.DataDictionary.PathMappingStrategyNested classes/interfaces inherited from interface org.citrusframework.message.MessageProcessor
org.citrusframework.message.MessageProcessor.Builder<T extends org.citrusframework.message.MessageProcessor,B extends org.citrusframework.message.MessageProcessor.Builder<T, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.citrusframework.spi.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, org.citrusframework.context.TestContext context) Convert to original value type if necessary.org.citrusframework.spi.ResourceGets the mapping file resource.Gets the mappings.getName()org.citrusframework.variable.dictionary.DataDictionary.PathMappingStrategyvoidbooleanvoidsetGlobalScope(boolean scope) Sets the global scope property.voidsetMappingFile(org.citrusframework.spi.Resource mappingFile) Sets the mapping file resource.voidsetMappings(Map<String, String> mappings) Sets the mappings.voidSets the data dictionary name.voidsetPathMappingStrategy(org.citrusframework.variable.dictionary.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
protected org.citrusframework.spi.Resource mappingFilemapping file resource
-
-
Constructor Details
-
AbstractDataDictionary
public AbstractDataDictionary()
-
-
Method Details
-
convertIfNecessary
protected <V> V convertIfNecessary(String value, V originalValue, org.citrusframework.context.TestContext context) Convert to original value type if necessary.- Type Parameters:
V-- Parameters:
value-originalValue-context-- Returns:
-
initialize
public void initialize()- Specified by:
initializein interfaceorg.citrusframework.common.InitializingPhase
-
getName
- Specified by:
getNamein interfaceorg.citrusframework.variable.dictionary.DataDictionary<T>- Overrides:
getNamein classorg.citrusframework.message.AbstractMessageProcessor
-
setName
Sets the data dictionary name.- Parameters:
name-
-
isGlobalScope
public boolean isGlobalScope()- Specified by:
isGlobalScopein interfaceorg.citrusframework.Scoped
-
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
public org.citrusframework.spi.Resource getMappingFile()Gets the mapping file resource.- Returns:
-
setMappingFile
public void setMappingFile(org.citrusframework.spi.Resource mappingFile) Sets the mapping file resource.- Parameters:
mappingFile-
-
getPathMappingStrategy
public org.citrusframework.variable.dictionary.DataDictionary.PathMappingStrategy getPathMappingStrategy()- Specified by:
getPathMappingStrategyin interfaceorg.citrusframework.variable.dictionary.DataDictionary<T>
-
setPathMappingStrategy
public void setPathMappingStrategy(org.citrusframework.variable.dictionary.DataDictionary.PathMappingStrategy pathMappingStrategy) Sets the path mapping strategy.- Parameters:
pathMappingStrategy-
-