// Path: src/main/java/com/tfsinc/ilabs/olap/references/MDXReferences.java
// public class MDXReferences {
// 
// 	// Query key words.
// 	public static final String SELECT = "SELECT ";
// 	public static final String ON = " ON ";
// 	public static final String FROM = " FROM ";
// 	public static final String WHERE = " WHERE ";
// 	public static final String NON_EMPTY = " NON EMPTY ";
// 	public static final String ORDER = " ORDER ";
// 	public static final String FORMAT_STRING = " FORMAT_STRING =";
// 	public static final String MEMBER = " MEMBER ";
// 	public static final String AS = " AS ";
// 	public static final String WITH = " WITH ";
// 	
// 	public static final char SEPARATOR = ',';
// 	public static final char SEPARATOR_CROSS = '*';
// 	public static final char DEFAULT_AXIS = '0';
// 
// 	// Member specifiers.
// 	public static final char MEMBER_START = '[';
// 	public static final char MEMBER_END = ']';
// 	public static final char MEMBER_SET_START = '{';
// 	public static final char MEMBER_SET_END = '}';
// 	public static final char MEMBER_HIERARCHY_SEPARATOR = '.';
// 	public static final char MEMBER_SPECIFIER = '&';
// 
// 	public static final char FUNCTION_START = '(';
// 	public static final char FUNCTION_END = ')';
// 
// 	// Standard member terminology.
// 	public static final String MEASURES = "[Measures].";
// 
// 	// Sort order types.
// 	public static final String ORDER_ASCENDING = " ASC ";
// 	public static final String ORDER_DESCENDING = " DESC ";
// 	public static final String ORDER_CUSTOM_ASCENDING = " BASC ";
// 	public static final String ORDER_CUSTOM_DESCENDING = " BDESC ";
// 
// 	// Format string types.
// 	public static final String FORMAT_STRING_GENERAL_NUMBER = " \"General Number\" ";
// 	public static final String FORMAT_STRING_CURRENCY = " \"Currency\" ";
// 	public static final String FORMAT_STRING_FIXED = " \"Fixed\" ";
// 	public static final String FORMAT_STRING_STANDARD = " \"Standard\" ";
// 	public static final String FORMAT_STRING_PERCENT = " \"Percent\" ";
// 	public static final String FORMAT_STRING_SCIENTIFIC = " \"Scientific\" ";
// 	public static final String FORMAT_STRING_YES_NO = " \"Yes/No\" ";
// 	public static final String FORMAT_STRING_TRUE_FALSE = " \"True/False\" ";
// 	public static final String FORMAT_STRING_ON_OFF = " \"On/Off\" ";
// 
// }


import com.tfsinc.ilabs.olap.references.MDXReferences;
package com.tfsinc.ilabs.mdx.builder.member;


/**
 * Format string types used in MDX queries, particularly in
 * calculated member types.
 * @author siddharth.s
 */
public enum FormatString {

	/**
	 * Displays the number with no thousand separator.
	 */
	GENERAL_NUMBER,

	/**
	 * Displays the number with a thousand separator, if appropriate.
	 * Displays two digits to the right of the decimal separator.
	 * Output is based on system locale settings.
	 */
	CURRENCY,

	/**
	 * Displays at least one digit to the left and two digits to
	 * the right of the decimal separator.
	 */
	FIXED,

	/**
	 * Displays the number with thousand separator, at least one
	 * digit to the left and two digits to the right of the decimal separator.
	 */
	STANDARD,

	/**
	 * Displays the number multiplied by 100 with a percent sign (%)
	 * appended to the right. Always displays two digits to the right
	 * of the decimal separator.
	 */
	PERCENT,

	/**
	 * Uses standard scientific notation.
	 */
	SCIENTIFIC,

	/**
	 * Displays No if the number is 0; otherwise, displays Yes.
	 */
	YES_NO,

	/**
	 * Displays False if the number is 0; otherwise, displays True.
	 */
	TRUE_FALSE,

	/**
	 * Displays Off if the number is 0; otherwise, displays On.
	 */
	ON_OFF;

	/**
	 * @param formatString Format string enumeration type.
	 * @return Format string as is should appear in the MDX query.
	 */
	public static final String getFormatString(final FormatString formatString) {
		switch (formatString) {
			case CURRENCY:
// Path: src/main/java/com/tfsinc/ilabs/olap/references/MDXReferences.java
// public class MDXReferences {
// 
// 	// Query key words.
// 	public static final String SELECT = "SELECT ";
// 	public static final String ON = " ON ";
// 	public static final String FROM = " FROM ";
// 	public static final String WHERE = " WHERE ";
// 	public static final String NON_EMPTY = " NON EMPTY ";
// 	public static final String ORDER = " ORDER ";
// 	public static final String FORMAT_STRING = " FORMAT_STRING =";
// 	public static final String MEMBER = " MEMBER ";
// 	public static final String AS = " AS ";
// 	public static final String WITH = " WITH ";
// 	
// 	public static final char SEPARATOR = ',';
// 	public static final char SEPARATOR_CROSS = '*';
// 	public static final char DEFAULT_AXIS = '0';
// 
// 	// Member specifiers.
// 	public static final char MEMBER_START = '[';
// 	public static final char MEMBER_END = ']';
// 	public static final char MEMBER_SET_START = '{';
// 	public static final char MEMBER_SET_END = '}';
// 	public static final char MEMBER_HIERARCHY_SEPARATOR = '.';
// 	public static final char MEMBER_SPECIFIER = '&';
// 
// 	public static final char FUNCTION_START = '(';
// 	public static final char FUNCTION_END = ')';
// 
// 	// Standard member terminology.
// 	public static final String MEASURES = "[Measures].";
// 
// 	// Sort order types.
// 	public static final String ORDER_ASCENDING = " ASC ";
// 	public static final String ORDER_DESCENDING = " DESC ";
// 	public static final String ORDER_CUSTOM_ASCENDING = " BASC ";
// 	public static final String ORDER_CUSTOM_DESCENDING = " BDESC ";
// 
// 	// Format string types.
// 	public static final String FORMAT_STRING_GENERAL_NUMBER = " \"General Number\" ";
// 	public static final String FORMAT_STRING_CURRENCY = " \"Currency\" ";
// 	public static final String FORMAT_STRING_FIXED = " \"Fixed\" ";
// 	public static final String FORMAT_STRING_STANDARD = " \"Standard\" ";
// 	public static final String FORMAT_STRING_PERCENT = " \"Percent\" ";
// 	public static final String FORMAT_STRING_SCIENTIFIC = " \"Scientific\" ";
// 	public static final String FORMAT_STRING_YES_NO = " \"Yes/No\" ";
// 	public static final String FORMAT_STRING_TRUE_FALSE = " \"True/False\" ";
// 	public static final String FORMAT_STRING_ON_OFF = " \"On/Off\" ";
// 
// }


// Path: src/main/java/com/tfsinc/ilabs/mdx/builder/member/FormatString.java
import com.tfsinc.ilabs.olap.references.MDXReferences;

package com.tfsinc.ilabs.mdx.builder.member;


/**
 * Format string types used in MDX queries, particularly in
 * calculated member types.
 * @author siddharth.s
 */
public enum FormatString {

	/**
	 * Displays the number with no thousand separator.
	 */
	GENERAL_NUMBER,

	/**
	 * Displays the number with a thousand separator, if appropriate.
	 * Displays two digits to the right of the decimal separator.
	 * Output is based on system locale settings.
	 */
	CURRENCY,

	/**
	 * Displays at least one digit to the left and two digits to
	 * the right of the decimal separator.
	 */
	FIXED,

	/**
	 * Displays the number with thousand separator, at least one
	 * digit to the left and two digits to the right of the decimal separator.
	 */
	STANDARD,

	/**
	 * Displays the number multiplied by 100 with a percent sign (%)
	 * appended to the right. Always displays two digits to the right
	 * of the decimal separator.
	 */
	PERCENT,

	/**
	 * Uses standard scientific notation.
	 */
	SCIENTIFIC,

	/**
	 * Displays No if the number is 0; otherwise, displays Yes.
	 */
	YES_NO,

	/**
	 * Displays False if the number is 0; otherwise, displays True.
	 */
	TRUE_FALSE,

	/**
	 * Displays Off if the number is 0; otherwise, displays On.
	 */
	ON_OFF;

	/**
	 * @param formatString Format string enumeration type.
	 * @return Format string as is should appear in the MDX query.
	 */
	public static final String getFormatString(final FormatString formatString) {
		switch (formatString) {
			case CURRENCY:
				return MDXReferences.FORMAT_STRING_CURRENCY;