Bug 185931 Support to distinguish the week between Year-Week and Month-Week[1101]
Description: In our OLAP builder, the datetime dimension is divided into YEAR-QUARTER-MONTH-WEEK-DAY. When select all the levels, the WEEK should be the week(1 to 5) in one MONTH When select YEAR-WEEK levels, the WEEK should be the week(1 to 52) in one YEAR But now in our OLAP builder, the WEEK only belong to the MONTH, But not belong to the year, so if only select the YEAR-WEEK level, the result of crosstab is meaningless. The YEAR-DAY, MONTH-DAY and WEEK-DAY also have the same issues. we should define a rule to make sure the WEEK has a correct relationship of his parent
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignSession.java
import org.eclipse.birt.report.model.util.ModelUtil;
import com.ibm.icu.util.ULocale;
/**
 * Represents a design session for a user of the application based on the Design
 * Engine. Tracks the user's set of open designs, the user's locale, the
 * application units and so on. Also provides methods for opening and creating
 * designs.
 * <p>
 * <code>DesignSession</code> allows to specify customized resource locator to
 * search a file. This resource locator must be set before opening any
 * <code>ReportDesign</code>, so for example, when encountering a library tag
 * in the design file, the parser needs to know where to get the library file by
 * this resource locator, the code in the parser might be like the following.
 * 
 * @see org.eclipse.birt.report.model.api.SessionHandle
 */
public class DesignSession
{
	/**
	 * list each item is <code>Style</code>
	 */
	private static List defaultTOCStyleList = null;
	/**
	 * file with TOC default value.
	 */
	public static final String TOC_DEFAULT_VALUE = "TOCDefaultValue.xml";
	/**
	 * Resource path.
	 */
	protected String resourceFolder = null;