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

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

public final class NegativeType
extends java.lang.Object

This class is used to specify how to display negative numbers.


Field Summary
static int _bracketed
           Show digits in brackets.
static int _leadingMinus
           Show digits with a leading minus sign.
static int _notNegative
           Show digits only.
static int _trailingMinus
           Show digits with a trailing minus sign.
static NegativeType bracketed
           A NegativeType object that specifies to show digits in brackets.
static NegativeType leadingMinus
           A NegativeType object that specifies to show digits with a leading minus sign.
static NegativeType notNegative
           A NegativeType object that specifies to show digits only.
static NegativeType trailingMinus
           A NegativeType object that specifies to show digits with a trailing minus sign.
 
Method Summary
static NegativeType from_int(int i)
           Returns the NegativeType object corresponding to the specified value.
static NegativeType from_string(java.lang.String sVal)
           Returns the NegativeType object corresponding to the specified type.
 java.lang.String toString()
           Returns the String value of this NegativeType object.
 int value()
           Returns the int value of this NegativeType object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_notNegative

public static final int _notNegative

Show digits only.

See Also:
Constant Field Values

_leadingMinus

public static final int _leadingMinus

Show digits with a leading minus sign.

See Also:
Constant Field Values

_trailingMinus

public static final int _trailingMinus

Show digits with a trailing minus sign.

See Also:
Constant Field Values

_bracketed

public static final int _bracketed

Show digits in brackets.

See Also:
Constant Field Values

notNegative

public static final NegativeType notNegative

A NegativeType object that specifies to show digits only.


leadingMinus

public static final NegativeType leadingMinus

A NegativeType object that specifies to show digits with a leading minus sign.


trailingMinus

public static final NegativeType trailingMinus

A NegativeType object that specifies to show digits with a trailing minus sign.


bracketed

public static final NegativeType bracketed

A NegativeType object that specifies to show digits in brackets.

Method Detail

from_int

public static final NegativeType from_int(int i)

Returns the NegativeType object corresponding to the specified value.

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

from_string

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

Returns the NegativeType object corresponding to the specified type.

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

toString

public java.lang.String toString()

Returns the String value of this NegativeType object.

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

value

public int value()

Returns the int value of this NegativeType object.

Returns:
The int value of this NegativeType object.