Class X2JStringHandlerFactory

java.lang.Object
com.x2j.converter.mgr.handlers.X2JStringHandlerFactory

public class X2JStringHandlerFactory extends Object
A factory for creating X2JStringHandler objects.
  • Method Details

    • getInstance

      public static X2JStringHandlerFactory getInstance()
      Gets the single instance of X2JStringHandlerFactory.
      Returns:
      instance of X2JStringHandlerFactory
    • getHandler

      public X2JStringHandler getHandler(String jsonValue)
      Returns the appropriate handler for the JSON value string depending upon the keyword that is defined in the schema.
      If the keyword is not as expected, then a default handler is returned.
      Parameters:
      jsonValue - the JSON value string
      Returns:
      the string handler