quadbase.util
Interface IFormat
- All Known Implementing Classes:
- DateTimeFormat, LocaleDateTimeFormat, LocaleNumericFormat, LogicalFormat, NumericFormat
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
static final int LOGICAL
- See Also:
- Constant Field Values
NUMERIC
static final int NUMERIC
- See Also:
- Constant Field Values
LOCALENUMERIC
static final int LOCALENUMERIC
- See Also:
- Constant Field Values
DATETIME
static final int DATETIME
- See Also:
- Constant Field Values
LOCALEDATETIME
static final int LOCALEDATETIME
- See Also:
- Constant Field Values
getFormatType
int getFormatType()
- Returns the type of format
- Returns:
- LOGICAL, NUMERIC, LOCALENUMERIC, DATETIME or LOCALEDATETIME
format
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