Class SubStringHandler
java.lang.Object
com.x2j.converter.mgr.handlers.impl.SubStringHandler
- All Implemented Interfaces:
X2JStringHandler
The handler for the X2JStringHandler interface for the SUBSTR keyword.
If the given string is an XPath expression, this will resolve the same and the extract the sub-string as per the given input.
If the given string is not an XPath expression, then the sub-string will be extracted directly from the string.
If the given string is an XPath expression, this will resolve the same and the extract the sub-string as per the given input.
If the given string is not an XPath expression, then the sub-string will be extracted directly from the string.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandleString
(String rawValueString, Element rootElement) Returns the sub-string as per the given input.
-
Constructor Details
-
SubStringHandler
public SubStringHandler()
-
-
Method Details
-
handleString
Returns the sub-string as per the given input.- Specified by:
handleString
in interfaceX2JStringHandler
- Parameters:
rawValueString
- the raw JSON value stringrootElement
- the root element in the input XML- Returns:
- the sub-string value
- Throws:
X2JException
- X2JException
-