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

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

public final class YearFormat
extends java.lang.Object

This class is used to specify how to display the year.


Field Summary
static int _longYear
           Display the year in 4 digits.
static int _noYear
           Do not display the year.
static int _shortYear
           Display the year in 2 digits.
static YearFormat longYear
           A YearFormat object that specifies to display the year in 4 digits.
static YearFormat noYear
           A YearFormat object that specifies to not display the year.
static YearFormat shortYear
           A YearFormat object that specifies to display the year in 2 digits.
 
Method Summary
static YearFormat from_int(int i)
           Returns the YearFormat object corresponding to the specified value.
static YearFormat from_string(java.lang.String sVal)
           Returns the YearFormat object corresponding to the specified type.
 java.lang.String toString()
           Returns the String value of this YearFormat object.
 int value()
           Returns the int value of this YearFormat object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_shortYear

public static final int _shortYear

Display the year in 2 digits.

See Also:
Constant Field Values

_longYear

public static final int _longYear

Display the year in 4 digits.

See Also:
Constant Field Values

_noYear

public static final int _noYear

Do not display the year.

See Also:
Constant Field Values

shortYear

public static final YearFormat shortYear

A YearFormat object that specifies to display the year in 2 digits.


longYear

public static final YearFormat longYear

A YearFormat object that specifies to display the year in 4 digits.


noYear

public static final YearFormat noYear

A YearFormat object that specifies to not display the year.

Method Detail

from_int

public static final YearFormat from_int(int i)

Returns the YearFormat object corresponding to the specified value.

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

from_string

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

Returns the YearFormat object corresponding to the specified type.

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

toString

public java.lang.String toString()

Returns the String value of this YearFormat object.

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

value

public int value()

Returns the int value of this YearFormat object.

Returns:
The int value of this YearFormat object.