Class XpathMappingDataDictionary

All Implemented Interfaces:
InitializingPhase, MessageDirectionAware, MessageProcessor, MessageTransformer, MessageTypeSelector, Scoped, DataDictionary<Node>

public class XpathMappingDataDictionary extends AbstractXmlDataDictionary implements InitializingPhase
Xml data dictionary implementation maps elements via XPath expressions. When element is identified by some expression in dictionary value is overwritten accordingly. Namespace context is either evaluated on the fly or by global namespace context builder.
Since:
1.4
Author:
Christoph Deppisch
  • Constructor Details

    • XpathMappingDataDictionary

      public XpathMappingDataDictionary()
  • Method Details

    • translate

      public <T> T translate(Node node, T value, TestContext context)
      Specified by:
      translate in interface DataDictionary<Node>
    • initialize

      public void initialize()
      Specified by:
      initialize in interface InitializingPhase
      Overrides:
      initialize in class AbstractDataDictionary<Node>
    • setNamespaceContextBuilder

      public void setNamespaceContextBuilder(org.citrusframework.xml.namespace.NamespaceContextBuilder namespaceContextBuilder)
      Sets the namespace context builder.
      Parameters:
      namespaceContextBuilder -