EspressReport 6.6

quadbase.util
Class LogicalFormat

java.lang.Object
  extended by quadbase.util.LogicalFormat
All Implemented Interfaces:
IFormat

public class LogicalFormat
extends java.lang.Object
implements IFormat

LogicalFormat

Class to format logical/boolean value


Field Summary
static int ONE_ZERO
          1/0
static int T_F
          T/F
static int TRUE_FALSE
          True/False
static int Y_N
          Y/N
static int YES_NO
          Yes/No
 
Fields inherited from interface quadbase.util.IFormat
DATETIME, LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC
 
Constructor Summary
LogicalFormat(int format)
          Create a LogicalFormat instance.
 
Method Summary
 java.lang.String format(java.lang.Object obj)
          Define quadbase.util.IFormat.
 int getformat()
          Get current format.
 int getFormatType()
          Define quadbase.util.IFormat.
 void setformat(int format)
          Set logical format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

T_F

public static final int T_F
T/F

See Also:
Constant Field Values

TRUE_FALSE

public static final int TRUE_FALSE
True/False

See Also:
Constant Field Values

YES_NO

public static final int YES_NO
Yes/No

See Also:
Constant Field Values

Y_N

public static final int Y_N
Y/N

See Also:
Constant Field Values

ONE_ZERO

public static final int ONE_ZERO
1/0

See Also:
Constant Field Values
Constructor Detail

LogicalFormat

public LogicalFormat(int format)
Create a LogicalFormat instance.

Parameters:
format - one of T_F, TRUE_FALSE, YES_NO, Y_N, ONE_ZERO
Method Detail

getFormatType

public int getFormatType()
Define quadbase.util.IFormat. Return the type of quadbase.util.IFormat.

Specified by:
getFormatType in interface IFormat
Returns:
IFormat.LOGICAL

format

public java.lang.String format(java.lang.Object obj)
Define quadbase.util.IFormat. Format the object if it is an instance of Boolean, otherwise call the default toString() method.

Specified by:
format in interface IFormat
Parameters:
obj - The target object
Returns:
Formatted string

getformat

public int getformat()
Get current format.

Parameters:
return - current format

setformat

public void setformat(int format)
Set logical format.

Parameters:
format - new format

EspressReport 6.6