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.
  • Field Details

    • mappings

      protected Map<String,String> mappings
      Known mappings to this dictionary
    • mappingFile

      protected Resource mappingFile
      mapping file resource
  • Constructor Details

    • AbstractDataDictionary

      public AbstractDataDictionary()
  • Method Details

    • convertIfNecessary

      protected <V> V convertIfNecessary(String value, V originalValue, TestContext context)
      Convert to original value type if necessary.
      Type Parameters:
      V -
      Parameters:
      value -
      originalValue -
      context -
      Returns:
    • initialize

      public void initialize()
      Specified by:
      initialize in interface InitializingPhase
    • getName

      public String getName()
      Specified by:
      getName in interface DataDictionary<T>
      Overrides:
      getName in class AbstractMessageProcessor
    • setName

      public void setName(String name)
      Sets the data dictionary name.
      Parameters:
      name -
    • isGlobalScope

      public boolean isGlobalScope()
      Specified by:
      isGlobalScope in interface Scoped
    • setGlobalScope

      public void setGlobalScope(boolean scope)
      Sets the global scope property.
      Parameters:
      scope -
    • setMappings

      public void setMappings(Map<String,String> mappings)
      Sets the mappings.
      Parameters:
      mappings -
    • getMappings

      public Map<String,String> getMappings()
      Gets the mappings.
      Returns:
    • getMappingFile

      public Resource getMappingFile()
      Gets the mapping file resource.
      Returns:
    • setMappingFile

      public void setMappingFile(Resource mappingFile)
      Sets the mapping file resource.
      Parameters:
      mappingFile -
    • getPathMappingStrategy

      public DataDictionary.PathMappingStrategy getPathMappingStrategy()
      Specified by:
      getPathMappingStrategy in interface DataDictionary<T>
    • setPathMappingStrategy

      public void setPathMappingStrategy(DataDictionary.PathMappingStrategy pathMappingStrategy)
      Sets the path mapping strategy.
      Parameters:
      pathMappingStrategy -