com.crystaldecisions.sdk.occa.report.definition
Class TimeBase

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.definition.TimeBase

public final class TimeBase
extends java.lang.Object

This class is used to specify the time base.


Field Summary
static int _12Hour
           Display time in 12-hour format.
static int _24Hour
           Display time in 24-hour format.
static TimeBase TwelveHour
           A TimeBase object used to specify the display time in 12-hour format.
static TimeBase TwentyFourHour
           A TimeBase object used to specify the display time in 24-hour format.
 
Method Summary
static TimeBase from_int(int i)
           Returns the TimeBase object corresponding to the specified value.
static TimeBase from_string(java.lang.String sVal)
           Returns the TimeBase object corresponding to the specified type.
 java.lang.String toString()
           Returns the String value of this TimeBase object.
 int value()
           Returns the int value of this TimeBase object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_12Hour

public static final int _12Hour

Display time in 12-hour format.

See Also:
Constant Field Values

_24Hour

public static final int _24Hour

Display time in 24-hour format.

See Also:
Constant Field Values

TwelveHour

public static final TimeBase TwelveHour

A TimeBase object used to specify the display time in 12-hour format.


TwentyFourHour

public static final TimeBase TwentyFourHour

A TimeBase object used to specify the display time in 24-hour format.

Method Detail

from_int

public static final TimeBase from_int(int i)

Returns the TimeBase object corresponding to the specified value.

Parameters:
i - The int value of the desired TimeBase object.
Returns:
The TimeBase object corresponding to the specified value.

from_string

public static final TimeBase from_string(java.lang.String sVal)

Returns the TimeBase object corresponding to the specified type.

Parameters:
sVal - The String value of the desired TimeBase object.
Returns:
The TimeBase object corresponding to the specified type.

toString

public java.lang.String toString()

Returns the String value of this TimeBase object.

Overrides:
toString in class java.lang.Object
Returns:
The String value of this TimeBase object.

value

public int value()

Returns the int value of this TimeBase object.

Returns:
The int value of this TimeBase object.