package org.intermine.webservice.server.output;

/*
 * Copyright (C) 2002-2011 FlyMine
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  See the LICENSE file for more
 * information or http://www.gnu.org/copyleft/lesser.html.
 *
 */

/**
 * @author Alexis Kalderimis
 * 
 */
public class JSONRowFormatter extends JSONFormatter {
    
    /**
     * The key for setting the header attributes for the title.
     */
    public static final String KEY_TITLE = "title";
    
    /**
     * The key for setting the header attributes for the count.
     */
    public static final String KEY_COUNT = "count";
    
    /**
     * The key for setting the header attributes for the TSV export URL.
     */
    public static final String KEY_EXPORT_TSV_URL = "tsv_url";
    
    /**
     * The key for setting the header attributes for the CSV export URL.
     */
    public static final String KEY_EXPORT_CSV_URL = "csv_url";
    
    /**
     * The key for setting the header attributes for the previous page
     */
    public static final String KEY_PREVIOUS_PAGE = "previous";
    
    /**
     * The key for setting the header attributes for the next page
     */
    public static final String KEY_NEXT_PAGE = "next";
    
    /**
     * Constructor.
     */
    public JSONRowFormatter() {
        // Empty constructor
    }
}

@@ -42,16 +42,17 @@
 utput;%0A%0A
+%0A
 /*%0A * Co
@@ -376,17 +376,16 @@
 rimis%0A *
- 
 %0A */%0Apub
@@ -427,910 +427,25 @@
 JSON
-Formatter %7B%0A    %0A    /**%0A     * The key for setting the header attributes for the title.%0A     */%0A    public static final String KEY_TITLE = %22title%22;%0A    %0A    /**%0A     * The key for setting the header attributes for the count.%0A     */%0A    public static final String KEY_COUNT = %22count%22;%0A    %0A    /**%0A     * The key for setting the header attributes for the TSV export URL.%0A     */%0A    public static final String KEY_EXPORT_TSV_URL = %22tsv_url%22;%0A    %0A    /**%0A     * The key for setting the header attributes for the CSV export URL.%0A     */%0A    public static final String KEY_EXPORT_CSV_URL = %22csv_url%22;%0A    %0A    /**%0A     * The key for setting the header attributes for the previous page%0A     */%0A    public static final String KEY_PREVIOUS_PAGE = %22previous%22;%0A    %0A    /**%0A     * The key for setting the header attributes for the next page%0A     */%0A    public static final String KEY_NEXT_PAGE = %22next%22;%0A    
+TableFormatter%0A%7B%0A
 %0A   
@@ -467,17 +467,16 @@
 structor
-.
 %0A     */
@@ -519,17 +519,17 @@
      // 
-E
+e
 mpty con
@@ -543,10 +543,11 @@
 r%0A    %7D%0A
+%0A
 %7D%0A

Subclassed this to JSONTableFormatter