Package com.logicaldoc.core.automation
Class AutomationNumberTool
java.lang.Object
org.apache.velocity.tools.generic.SafeConfig
org.apache.velocity.tools.generic.LocaleConfig
org.apache.velocity.tools.generic.FormatConfig
org.apache.velocity.tools.generic.NumberTool
com.logicaldoc.core.automation.AutomationNumberTool
- All Implemented Interfaces:
Serializable
public class AutomationNumberTool
extends org.apache.velocity.tools.generic.NumberTool
Extension of the standard NumberTool that allows the locale specification as
string.
- Since:
- 7.3
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Field Summary
Fields inherited from class org.apache.velocity.tools.generic.FormatConfig
DEFAULT_FORMAT, FORMAT_KEY
Fields inherited from class org.apache.velocity.tools.generic.LocaleConfig
DEFAULT_LOCALE
Fields inherited from class org.apache.velocity.tools.generic.SafeConfig
LOCK_CONFIG_KEY, LOGGER_NAME_KEY, SAFE_MODE_KEY, USE_CLASS_LOGGER_KEY
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.velocity.tools.generic.NumberTool
currency, format, format, format, getNumberFormat, integer, number, percent, toNumber, toNumber, toNumber
Methods inherited from class org.apache.velocity.tools.generic.FormatConfig
getFormat
Methods inherited from class org.apache.velocity.tools.generic.LocaleConfig
getLocale, toLocale
Methods inherited from class org.apache.velocity.tools.generic.SafeConfig
configure, isConfigLocked, isSafeMode
-
Constructor Details
-
AutomationNumberTool
public AutomationNumberTool()
-
-
Method Details
-
format
Formats a number using the specified format- Parameters:
format
- the format to useobj
- the number to formatlocale
- a locale specification- Returns:
- the formatted number
-