Package quadbase.util
Interface IFormat
- All Known Implementing Classes:
DateTimeFormat,LocaleDateTimeFormat,LocaleNumericFormat,LogicalFormat,NumericFormat
public interface IFormat
Tagging interface for data formats.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionConvert the object to a string using the formatting rules encapsulated by the IFormat subclassintReturns the type of format
-
Field Details
-
LOGICAL
static final int LOGICAL- See Also:
-
NUMERIC
static final int NUMERIC- See Also:
-
LOCALENUMERIC
static final int LOCALENUMERIC- See Also:
-
DATETIME
static final int DATETIME- See Also:
-
LOCALEDATETIME
static final int LOCALEDATETIME- See Also:
-
-
Method Details
-
getFormatType
int getFormatType()Returns the type of format- Returns:
- LOGICAL, NUMERIC, LOCALENUMERIC, DATETIME or LOCALEDATETIME
-
format
Convert the object to a string using the formatting rules encapsulated by the IFormat subclass- Returns:
- Formatted string
-