Interface IFormat

All Known Implementing Classes:
BarcodeFormat, ImageURLFormat, LocaleDateTimeFormat, LocaleNumericFormat, LogicalFormat, NumericFormat, StringFormat, TextURLFormat

public interface IFormat
Tagging interface for data formats.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    data format type is Barcode
    static final int
    data format type is DateTime
    static final int
     
    static final int
    data format type is LocaleDateTime
    static final int
    data format type is LocaleNumeric
    static final int
    data format type is Logical
    static final int
    data format type is Numeric
    static final int
    data format type is String
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    format(Object target)
    Convert the object to a string using the formatting rules encapsulated by the IFormat subclass
    int
    Returns the type of format
    For internal use only
  • Field Details

  • Method Details

    • getFormatType

      int getFormatType()
      Returns the type of format
      Returns:
      LOGICAL, NUMERIC, LOCALENUMERIC, DATETIME, LOCALEDATETIME, STRING BARCODE, IMAGEURL, or TEXTURL
    • format

      String format(Object target)
      Convert the object to a string using the formatting rules encapsulated by the IFormat subclass
      Returns:
      Formatted string
    • getTextFormat

      String getTextFormat()
      For internal use only