Class ConcatHandler

java.lang.Object
com.x2j.converter.mgr.handlers.impl.ConcatHandler
All Implemented Interfaces:
X2JStringHandler

public class ConcatHandler extends Object implements X2JStringHandler
The handler for the X2JStringHandler interface for the CONCAT keyword.
There is no limit to the number of strings that needs to be concatenated here.
All the string that needs to concatenated must be separated by a comma (,).
For a XPath string, this will resolve the value and then perform the concatenation on the value.
Any normal string will be directly used for concatenation.
  • Constructor Details

    • ConcatHandler

      public ConcatHandler()
  • Method Details

    • handleString

      public String handleString(String rawValueString, Element rootElement) throws X2JException
      Returns the concatenated string of values (resolved values/JSON values).
      Specified by:
      handleString in interface X2JStringHandler
      Parameters:
      rawValueString - the raw JSON value string
      rootElement - the root element in the input XML
      Returns:
      the concatenated value string
      Throws:
      X2JException - X2JException