Class JsonConsumer

    • Constructor Detail

      • JsonConsumer

        public JsonConsumer()
    • Method Detail

      • collectValues

        protected Object[] collectValues​(AbstractOption option,
                                         net.minidev.json.JSONObject input)
        Collects all the arguments for given argument options.
        Parameters:
        option - the option to gather the arguments for
        input - the command-line array to process
        Returns:
        the collected values
      • doConsume

        protected void doConsume​(OptionManager manager,
                                 net.minidev.json.JSONObject input)
        Visits the options.
        Specified by:
        doConsume in class AbstractOptionConsumer<net.minidev.json.JSONObject,​Object>
        Parameters:
        manager - the manager to visit
        input - the input data to use
      • convertToInput

        protected net.minidev.json.JSONObject convertToInput​(String s)
        Converts the input string into the internal format.
        Specified by:
        convertToInput in class AbstractOptionConsumer<net.minidev.json.JSONObject,​Object>
        Parameters:
        s - the string to process
        Returns:
        the internal format, null in case of an error