Class LengthHandler
java.lang.Object
com.x2j.converter.mgr.handlers.impl.LengthHandler
- All Implemented Interfaces:
X2JStringHandler
The handler for the X2JStringHandler interface for the LEN keyword.
This handler will resolve the XPATH as provided in the schema and returns
length of the String value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleString(String rawValueString, Element rootElement) Returns the length of resolved XPATH value string.
-
Constructor Details
-
LengthHandler
public LengthHandler()
-
-
Method Details
-
handleString
Returns the length of resolved XPATH value string.- Specified by:
handleStringin interfaceX2JStringHandler- Parameters:
rawValueString- the raw JSON value stringrootElement- the root element in the input XML- Returns:
- the length of the resolved XPATH value string
- Throws:
X2JException- X2JException
-