Class NodeMappingDataDictionary

  • All Implemented Interfaces:
    com.consol.citrus.common.InitializingPhase, com.consol.citrus.message.MessageDirectionAware, com.consol.citrus.message.MessageProcessor, com.consol.citrus.message.MessageTransformer, com.consol.citrus.message.MessageTypeSelector, com.consol.citrus.Scoped, com.consol.citrus.variable.dictionary.DataDictionary<Node>

    public class NodeMappingDataDictionary
    extends AbstractXmlDataDictionary
    implements com.consol.citrus.common.InitializingPhase
    Very basic data dictionary that holds a list of mappings for message elements. Mapping key is the element path inside the XML structure getNodesPathName(). The mapping value is set as new element value where test variables are supported in value expressions.
    Since:
    1.4
    Author:
    Christoph Deppisch
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.consol.citrus.variable.dictionary.DataDictionary

        com.consol.citrus.variable.dictionary.DataDictionary.PathMappingStrategy
      • Nested classes/interfaces inherited from interface com.consol.citrus.message.MessageProcessor

        com.consol.citrus.message.MessageProcessor.Builder<T extends com.consol.citrus.message.MessageProcessor,​B extends com.consol.citrus.message.MessageProcessor.Builder<T,​B>>
    • Field Summary

      • Fields inherited from class com.consol.citrus.variable.dictionary.AbstractDataDictionary

        mappingFile, mappings
      • Fields inherited from interface com.consol.citrus.message.MessageProcessor

        RESOURCE_PATH, TYPE_RESOLVER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T translate​(Node node, T value, com.consol.citrus.context.TestContext context)  
      • Methods inherited from class com.consol.citrus.variable.dictionary.AbstractDataDictionary

        convertIfNecessary, getMappingFile, getMappings, getName, getPathMappingStrategy, initialize, isGlobalScope, setGlobalScope, setMappingFile, setMappings, setName, setPathMappingStrategy
      • Methods inherited from class com.consol.citrus.message.AbstractMessageProcessor

        getDirection, process, setDirection
      • 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
    • Constructor Detail

      • NodeMappingDataDictionary

        public NodeMappingDataDictionary()
    • Method Detail

      • translate

        public <T> T translate​(Node node,
                               T value,
                               com.consol.citrus.context.TestContext context)
        Specified by:
        translate in interface com.consol.citrus.variable.dictionary.DataDictionary<Node>