package org.saiku.web.rest.objects.resultset;

import java.util.Properties;

public class Cell  {

	private String value;
	private String type;
	private Properties properties;
	private Properties metaproperties;

	
	public enum Type {
		ROW_HEADER,
		COLUMN_HEADER,
		DATA_CELL,
		EMPTY,
		UNKNOWN
	}
	
	public Cell() {
	}
	
	public Cell(String value) {
		this(value,Type.EMPTY);
	}
	
//	public Cell(String value, Properties metaproperties, Properties properties, Type type) {
//		this.value = value;
//		this.properties = properties;
//		this.metaproperties = metaproperties;
//		this.type = type.toString();
//	}
	
	public Cell(String value, Type type) {
		this.value = value;
		this.type = type.toString();
	}
	
	public String getValue() {
		return value;
	}

	public Properties getProperties() {
		return properties;
	}

	public Properties getMetaproperties() {
		return metaproperties;
	}

	public String getType() {
		return type;
	}

	
	
}

@@ -44,37 +44,8 @@
 t;%0A%0A
-import java.util.Properties;%0A
 %0Apub
@@ -108,16 +108,18 @@
 g type;%0A
+//
 %09private
@@ -142,16 +142,18 @@
 erties;%0A
+//
 %09private
@@ -727,24 +727,26 @@
  value;%0A%09%7D%0A%0A
+//
 %09public Prop
@@ -762,32 +762,34 @@
 tProperties() %7B%0A
+//
 %09%09return propert
@@ -785,36 +785,42 @@
 urn properties;%0A
+//
 %09%7D%0A
-%0A
+//%0A//
 %09public Properti
@@ -840,24 +840,26 @@
 perties() %7B%0A
+//
 %09%09return met
@@ -871,16 +871,18 @@
 erties;%0A
+//
 %09%7D%0A%0A%09pub

remove props from cell