// Path: src/main/java/org/cytoscape/rest/internal/resource/JsonTags.java
// public class JsonTags {
// 
// 	
// 	// For JSON
// 	
// 	public static final String TITLE = "title";
// 	public static final String PUBLIC = "public";
// 	public static final String MUTABLE = "mutable";
// 	public static final String PRIMARY_KEY = "primaryKey";
// 	public static final String ROWS = "rows";
// 	
// 	public static final String COUNT = "count";
// 	
// 	public static final String COLUMN_NAME = "name";
// 	public static final String COLUMN_NAME_OLD = "oldName";
// 	public static final String COLUMN_NAME_NEW = "newName";
// 	public static final String COLUMN_TYPE = "type";
// 	public static final String COLUMN_VALUES = "values";
// 	public static final String COLUMN_IMMUTABLE = "immutable";
// 	public static final String COLUMN_IS_LIST = "list";
// 	public static final String COLUMN_IS_LOCAL = "local";
// 	
// 	public static final String TABLE_FORMAT = "format";
// 	
// 	public static final String SOURCE = "source";
// 	public static final String TARGET= "target";
// 	public static final String DIRECTED = "directed";
// 	
// 	public static final String NETWORK_SUID = "networkSUID";
// 	
// 	public static final String URL = "url";
// 	public static final String FORMAT_EDGELIST = "edgelist";
// 	
// 	
// 	
// }


import java.io.IOException;
import java.util.List;
import org.cytoscape.model.CyIdentifiable;
import org.cytoscape.model.CyRow;
import org.cytoscape.model.CyTable;
import org.cytoscape.rest.internal.resource.JsonTags;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
package org.cytoscape.rest.internal.serializer;




public class TableSerializer extends JsonSerializer<CyTable> {

	@Override
	public Class<CyTable> handledType() {
		return CyTable.class;
	}

	@Override
	public void serialize(CyTable table, JsonGenerator generator, SerializerProvider provider) throws IOException,
			JsonProcessingException {
		generator.useDefaultPrettyPrinter();

		generator.writeStartObject();

		generator.writeNumberField(CyIdentifiable.SUID, table.getSUID());
// Path: src/main/java/org/cytoscape/rest/internal/resource/JsonTags.java
// public class JsonTags {
// 
// 	
// 	// For JSON
// 	
// 	public static final String TITLE = "title";
// 	public static final String PUBLIC = "public";
// 	public static final String MUTABLE = "mutable";
// 	public static final String PRIMARY_KEY = "primaryKey";
// 	public static final String ROWS = "rows";
// 	
// 	public static final String COUNT = "count";
// 	
// 	public static final String COLUMN_NAME = "name";
// 	public static final String COLUMN_NAME_OLD = "oldName";
// 	public static final String COLUMN_NAME_NEW = "newName";
// 	public static final String COLUMN_TYPE = "type";
// 	public static final String COLUMN_VALUES = "values";
// 	public static final String COLUMN_IMMUTABLE = "immutable";
// 	public static final String COLUMN_IS_LIST = "list";
// 	public static final String COLUMN_IS_LOCAL = "local";
// 	
// 	public static final String TABLE_FORMAT = "format";
// 	
// 	public static final String SOURCE = "source";
// 	public static final String TARGET= "target";
// 	public static final String DIRECTED = "directed";
// 	
// 	public static final String NETWORK_SUID = "networkSUID";
// 	
// 	public static final String URL = "url";
// 	public static final String FORMAT_EDGELIST = "edgelist";
// 	
// 	
// 	
// }


// Path: src/main/java/org/cytoscape/rest/internal/serializer/TableSerializer.java
import java.io.IOException;
import java.util.List;
import org.cytoscape.model.CyIdentifiable;
import org.cytoscape.model.CyRow;
import org.cytoscape.model.CyTable;
import org.cytoscape.rest.internal.resource.JsonTags;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

package org.cytoscape.rest.internal.serializer;




public class TableSerializer extends JsonSerializer<CyTable> {

	@Override
	public Class<CyTable> handledType() {
		return CyTable.class;
	}

	@Override
	public void serialize(CyTable table, JsonGenerator generator, SerializerProvider provider) throws IOException,
			JsonProcessingException {
		generator.useDefaultPrettyPrinter();

		generator.writeStartObject();

		generator.writeNumberField(CyIdentifiable.SUID, table.getSUID());
		generator.writeStringField(JsonTags.TITLE, table.getTitle());