Class ConcatHandler
java.lang.Object
com.x2j.converter.mgr.handlers.impl.ConcatHandler
- All Implemented Interfaces:
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.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandleString
(String rawValueString, Element rootElement) Returns the concatenated string of values (resolved values/JSON values).
-
Constructor Details
-
ConcatHandler
public ConcatHandler()
-
-
Method Details
-
handleString
Returns the concatenated string of values (resolved values/JSON values).- Specified by:
handleString
in interfaceX2JStringHandler
- Parameters:
rawValueString
- the raw JSON value stringrootElement
- the root element in the input XML- Returns:
- the concatenated value string
- Throws:
X2JException
- X2JException
-