Class JsonToSpreadSheet

    • Field Detail

      • m_Prefix

        protected String m_Prefix
        the prefix to use for the column names.
      • m_LeftPad

        protected boolean m_LeftPad
        whether to left-pad the index of arrays with 0s.
    • Constructor Detail

      • JsonToSpreadSheet

        public JsonToSpreadSheet()
    • Method Detail

      • setPrefix

        public void setPrefix​(String value)
        Sets the prefix to use for the columns.
        Parameters:
        value - the prefix
      • getPrefix

        public String getPrefix()
        Returns the prefix to use for the columns.
        Returns:
        the prefix
      • prefixTipText

        public String prefixTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setLeftPad

        public void setLeftPad​(boolean value)
        Sets whether to left-pad the array indices with zeroes.
        Parameters:
        value - true if to pad
      • getLeftPad

        public boolean getLeftPad()
        Returns whether the array indices get left-padded with zeroes.
        Returns:
        true if to pad
      • leftPadTipText

        public String leftPadTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • flatten

        protected void flatten​(String path,
                               net.minidev.json.JSONArray json,
                               SpreadSheet sheet,
                               Row header)
        Flattens the JSON object.
        Parameters:
        json - the array to flatten
        path - the current path
        sheet - the sheet to add it to
        header - the header row
      • flatten

        protected void flatten​(String path,
                               net.minidev.json.JSONObject json,
                               SpreadSheet sheet,
                               Row header)
        Flattens the JSON object.
        Parameters:
        json - the object to flatten
        path - the current path
        sheet - the sheet to add it to
        header - the header row