package org.saiku.olap.query2;

import java.util.ArrayList;
import java.util.List;

import org.saiku.olap.query2.common.AbstractThinQuerySet;

public class ThinLevel extends AbstractThinQuerySet {

	private String name;
	private String caption;
	private List<String> aggs = new ArrayList<String>();;
	
	private ThinSelection selection;
	
	public ThinLevel() {};
	public ThinLevel(String name, String caption, ThinSelection selections, List<String> aggregators) {
		this.name = name;
		this.caption = caption;
		this.selection = selections;
		if (aggregators != null) {
			this.aggs.addAll(aggregators);
		}
		
	}
	@Override
	public String getName() {
		return name;
	}
	/**
	 * @return the caption
	 */
	public String getCaption() {
		return caption;
	}
	/**
	 * @return the selections
	 */
	public ThinSelection getSelection() {
		return selection;
	}
	
	public List<String> getAggregators() {
		return aggs;
	}
}

@@ -238,16 +238,50 @@
 aption;%0A
+%09private ThinSelection selection;%0A
 %09private
@@ -297,16 +297,23 @@
 ing%3E agg
+regator
 s = new 
@@ -336,45 +336,8 @@
 %3E();
-;%0A%09%0A%09private ThinSelection selection;
 %0A%09%0A%09
@@ -577,16 +577,23 @@
 this.agg
+regator
 s.addAll
@@ -895,24 +895,24 @@
 egators() %7B%0A
-
 %09%09return agg
@@ -911,16 +911,23 @@
 turn agg
+regator
 s;%0A%09%7D%0A%7D%0A

fix minor hickup with thinlevel