com.sas.dataselectors.calculateditems
Class TimeFunctions

com.sas.dataselectors.calculateditems.TimeFunctions

public class TimeFunctions


Field Summary
static java.lang.String CUMULATIVE
          This is a function that will calculate the cumulative value in measure over a period.
static java.lang.String CUMULATIVE_BASE_PERIOD
          This is a function that will calculate the cumulative value in measure over a period.
static java.lang.String CUMULATIVE_DEFAULT_PERIOD
          This is a function that will calculate the cumulative value in measure over a default period.
static java.lang.String DIFFERENCE_PERIOD
          This is a function that will calculate the difference in measure over a period.
static java.lang.String DIFFERENCE_PREVIOUS_PERIOD
          This is a function that will calculate the difference in measure between current period and previous period.
static java.lang.String DIFFERENCE_PREVIOUS_YEAR
          This is a function that will calculate the difference in measure between current year and previous year.
static java.lang.String DIFFERENCE_YEAR
          This is a function that will calculate the difference in measure over a period.
static java.lang.String NONE
          This is a function that will calculate the cumulative value in measure over a period.
static java.lang.String PERCENTCHANGE_PERIOD
          This is a function that will calculate the percentage of difference in a measure over a period.
static java.lang.String PERCENTCHANGE_PREVIOUS_PERIOD
          This is a function that will calculate the percentage of difference in a measure between current period and previous period.
static java.lang.String PERCENTCHANGE_PREVIOUS_YEAR
          This is a function that will calculate the percentage of difference in a measure between current year and previous year.
static java.lang.String PERCENTCHANGE_YEAR
          This is a function that will calculate the percentage of difference in a measure over a period.
static java.lang.String RB_KEY
           
 
Constructor Summary
TimeFunctions()
           
TimeFunctions(java.util.Locale locale)
           
 
Method Summary
 java.util.Locale getLocale()
           
 java.lang.String getTimeExpression(java.lang.String functionName)
           
 java.lang.String[] getTimeExpressionLabels()
           
 java.lang.String getTimeFunction(java.lang.String label)
           
 java.lang.String getTimeFunctionLabel(java.lang.String desc)
           
 java.lang.String[] getTimeFunctionLabels()
           
 java.lang.String[] getTimeFunctionNames()
           
static void main(java.lang.String[] args)
           
 void setLocale(java.util.Locale locale)
           
 

Field Detail

RB_KEY

public static final java.lang.String RB_KEY
See Also:
Constant Field Values

NONE

public static final java.lang.String NONE
This is a function that will calculate the cumulative value in measure over a period.

See Also:
Constant Field Values

DIFFERENCE_PREVIOUS_PERIOD

public static final java.lang.String DIFFERENCE_PREVIOUS_PERIOD
This is a function that will calculate the difference in measure between current period and previous period.

See Also:
Constant Field Values

DIFFERENCE_PREVIOUS_YEAR

public static final java.lang.String DIFFERENCE_PREVIOUS_YEAR
This is a function that will calculate the difference in measure between current year and previous year.

See Also:
Constant Field Values

DIFFERENCE_PERIOD

public static final java.lang.String DIFFERENCE_PERIOD
This is a function that will calculate the difference in measure over a period.

See Also:
Constant Field Values

DIFFERENCE_YEAR

public static final java.lang.String DIFFERENCE_YEAR
This is a function that will calculate the difference in measure over a period.

See Also:
Constant Field Values

PERCENTCHANGE_PREVIOUS_PERIOD

public static final java.lang.String PERCENTCHANGE_PREVIOUS_PERIOD
This is a function that will calculate the percentage of difference in a measure between current period and previous period.

See Also:
Constant Field Values

PERCENTCHANGE_PREVIOUS_YEAR

public static final java.lang.String PERCENTCHANGE_PREVIOUS_YEAR
This is a function that will calculate the percentage of difference in a measure between current year and previous year.

See Also:
Constant Field Values

PERCENTCHANGE_PERIOD

public static final java.lang.String PERCENTCHANGE_PERIOD
This is a function that will calculate the percentage of difference in a measure over a period.

See Also:
Constant Field Values

PERCENTCHANGE_YEAR

public static final java.lang.String PERCENTCHANGE_YEAR
This is a function that will calculate the percentage of difference in a measure over a period.

See Also:
Constant Field Values

CUMULATIVE

public static final java.lang.String CUMULATIVE
This is a function that will calculate the cumulative value in measure over a period.

See Also:
Constant Field Values

CUMULATIVE_DEFAULT_PERIOD

public static final java.lang.String CUMULATIVE_DEFAULT_PERIOD
This is a function that will calculate the cumulative value in measure over a default period.

See Also:
Constant Field Values

CUMULATIVE_BASE_PERIOD

public static final java.lang.String CUMULATIVE_BASE_PERIOD
This is a function that will calculate the cumulative value in measure over a period.

See Also:
Constant Field Values
Constructor Detail

TimeFunctions

public TimeFunctions(java.util.Locale locale)

TimeFunctions

public TimeFunctions()
Method Detail

getLocale

public java.util.Locale getLocale()

setLocale

public void setLocale(java.util.Locale locale)

getTimeFunctionLabel

public java.lang.String getTimeFunctionLabel(java.lang.String desc)

getTimeFunction

public java.lang.String getTimeFunction(java.lang.String label)

getTimeFunctionLabels

public java.lang.String[] getTimeFunctionLabels()

getTimeFunctionNames

public java.lang.String[] getTimeFunctionNames()

getTimeExpressionLabels

public java.lang.String[] getTimeExpressionLabels()

getTimeExpression

public java.lang.String getTimeExpression(java.lang.String functionName)

main

public static void main(java.lang.String[] args)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.