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;
	}
}

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 ThinSelection selection;
	private List<String> aggregators = new ArrayList<String>();
	
	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.aggregators.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 aggregators;
	}
}

fix minor hickup with thinlevel