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

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

public final class HourFormat
extends java.lang.Object

This class is used to specify the hour format.


Field Summary
static int _noHour
           Do not display the hour.
static int _noLeadingZeroNumericHour
           Display the hour without a leading zero for single-digit hours.
static int _numericHour
           Display the hour in 2-digit format.
static HourFormat noHour
           An HourFormat object that specifies to not display the hour.
static HourFormat noLeadingZeroNumericHour
           An HourFormat object that specifies to display the hour without a leading zero for single-digit hours.
static HourFormat numericHour
           An HourFormat object that specifies to display the hour in 2-digit format.
 
Method Summary
static HourFormat from_int(int i)
           Returns the HourFormat object corresponding to the specified value.
static HourFormat from_string(java.lang.String sVal)
           Returns the HourFormat object corresponding to the specified type.
 java.lang.String toString()
           Returns the String value of this HourFormat object.
 int value()
           Returns the int value of this HourFormat object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_numericHour

public static final int _numericHour

Display the hour in 2-digit format.

See Also:
Constant Field Values

_noLeadingZeroNumericHour

public static final int _noLeadingZeroNumericHour

Display the hour without a leading zero for single-digit hours.

See Also:
Constant Field Values

_noHour

public static final int _noHour

Do not display the hour.

See Also:
Constant Field Values

numericHour

public static final HourFormat numericHour

An HourFormat object that specifies to display the hour in 2-digit format.


noLeadingZeroNumericHour

public static final HourFormat noLeadingZeroNumericHour

An HourFormat object that specifies to display the hour without a leading zero for single-digit hours.


noHour

public static final HourFormat noHour

An HourFormat object that specifies to not display the hour.

Method Detail

from_int

public static final HourFormat from_int(int i)

Returns the HourFormat object corresponding to the specified value.

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

from_string

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

Returns the HourFormat object corresponding to the specified type.

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

toString

public java.lang.String toString()

Returns the String value of this HourFormat object.

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

value

public int value()

Returns the int value of this HourFormat object.

Returns:
The int value of this HourFormat object.