Class DefaultHandler

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

public class DefaultHandler extends Object implements X2JStringHandler
The default handler for the X2JStringHandler interface. This is a fallback handler in case an unknown keyword is used in the JSON schema. This handler will return the JSON value string as is.
  • Constructor Details

    • DefaultHandler

      public DefaultHandler()
  • Method Details

    • handleString

      public String handleString(String rawValueString, Element rootElement) throws X2JException
      Returns the same JSON value string as is.
      Specified by:
      handleString in interface X2JStringHandler
      Parameters:
      rawValueString - the raw JSON value string
      rootElement - the root element in the input XML
      Returns:
      the raw JSON value string
      Throws:
      X2JException - X2JException