Package org.adempiere.base
Interface IDisplayTypeFactory
- All Known Implementing Classes:
DisplayTypeFactory
public interface IDisplayTypeFactory
Interface for display type factory.
- Author:
- Jan Thielemann - jan.thielemann@evenos-consulting.de, evenos Consulting GmbH - www.evenos.org
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getClass
(int displayType, boolean yesNoAsBoolean) getDateFormat
(int displayType, Language language, String pattern) getDefaultPrecision
(int displayType) getDescription
(int displayType) getNumberFormat
(int displayType, Language language, String pattern) getSQLDataType
(int displayType, String columnName, int fieldLength) boolean
isDate
(int displayType) boolean
isID
(int displayType) default boolean
isList
(int displayType) boolean
isLOB
(int displayType) boolean
isLookup
(int displayType) boolean
isNumeric
(int displayType) boolean
isText
(int displayType) default boolean
isUUID
(int displayType)
-
Method Details
-
isID
boolean isID(int displayType) - Parameters:
displayType
-- Returns:
- true if displayType is of int ID type
-
isUUID
default boolean isUUID(int displayType) - Parameters:
displayType
-- Returns:
- true if displayType is of UUID type
-
isNumeric
boolean isNumeric(int displayType) - Parameters:
displayType
-- Returns:
- true if displayType is of numeric type
-
getDefaultPrecision
- Parameters:
displayType
-- Returns:
- default numeric precision for displayType
-
isText
boolean isText(int displayType) - Parameters:
displayType
-- Returns:
- true if displayType is of text type
-
isDate
boolean isDate(int displayType) - Parameters:
displayType
-- Returns:
- true if displayType is of date type
-
isList
default boolean isList(int displayType) -
isLookup
boolean isLookup(int displayType) - Parameters:
displayType
-- Returns:
- true if displayType is of lookup type (usually a foreign key type)
-
isLOB
boolean isLOB(int displayType) - Parameters:
displayType
-- Returns:
- true if displayType is of LOB type
-
getNumberFormat
- Parameters:
displayType
-language
-pattern
-- Returns:
- DecimalFormat
-
getDateFormat
- Parameters:
displayType
-language
-pattern
-- Returns:
- SimpleDateFormat
-
getClass
- Parameters:
displayType
-yesNoAsBoolean
-- Returns:
- Java type for displayType
-
getSQLDataType
- Parameters:
displayType
-columnName
-fieldLength
-- Returns:
- SQL data type for displayType
-
getDescription
- Parameters:
displayType
-- Returns:
- description for displayType
-