Class LogicalFormat

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

public class LogicalFormat extends Object implements IFormat
LogicalFormat

Class to format logical/boolean value

  • Field Details

  • Constructor Details

    • LogicalFormat

      public LogicalFormat(int format)
      Create a LogicalFormat instance
      Parameters:
      format - one of T_F, TRUE_FALSE, YES_NO, Y_N, ONE_ZERO
  • Method Details

    • getFormatType

      public int getFormatType()
      Define quadbase.reportdesigner.util.IFormat Return the type of quadbase.reportdesigner.util.IFormat
      Specified by:
      getFormatType in interface IFormat
      Returns:
      IFormat.LOGICAL
    • format

      public String format(Object obj)
      Define quadbase.reportdesigner.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 the current format
      Parameters:
      return - current format
    • setformat

      public void setformat(int format)
      Set logical format
      Parameters:
      format - new format
    • getTextFormat

      public String getTextFormat()
      For internal use only
      Specified by:
      getTextFormat in interface IFormat
    • createFormat

      public static LogicalFormat createFormat(String text) throws Exception
      For internal use only
      Throws:
      Exception