quadbase.util
Interface IFormat
- All Known Implementing Classes:
- LocaleDateTimeFormat, LocaleNumericFormat, DateTimeFormat, NumericFormat, LogicalFormat
- public interface IFormat
Tagging interface for data formats.
- See Also:
java.util.LogicalFormat,
java.util.NumericFormat,
java.util.LocaleNumericFormat,
java.util.DateTimeFormat,
java.util.LocaleDateTimeFormat
|
Method Summary |
java.lang.String |
format(java.lang.Object target)
Convert the object to a string using the formatting rules encapsulated by the IFormat subclass |
int |
getFormatType()
Returns the type of format |
LOGICAL
public static final int LOGICAL
NUMERIC
public static final int NUMERIC
LOCALENUMERIC
public static final int LOCALENUMERIC
DATETIME
public static final int DATETIME
LOCALEDATETIME
public static final int LOCALEDATETIME
getFormatType
public int getFormatType()
- Returns the type of format
- Returns:
- LOGICAL, NUMERIC, LOCALENUMERIC, DATETIME or LOCALEDATETIME
format
public java.lang.String format(java.lang.Object target)
- Convert the object to a string using the formatting rules encapsulated by the IFormat subclass
- Returns:
- Formatted string