public static final class LocalizationParam.Builder
extends java.lang.Object
LocalizationParam
.Constructor and Description |
---|
LocalizationParam.Builder()
Constructor with parameters for the required properties of
LocalizationParam . |
Modifier and Type | Method and Description |
---|---|
LocalizationParam |
build() |
LocalizationParam.Builder |
setD(java.lang.Double d)
The
double value associated with the parameter. |
LocalizationParam.Builder |
setDt(java.util.Calendar dt)
Date and time value associated with the parameter.
|
LocalizationParam.Builder |
setFormat(LocalizationParam.DateTimeFormat format)
Format associated with the date and time value in
getDt() property. |
LocalizationParam.Builder |
setI(java.lang.Long i)
long value associated with the parameter. |
LocalizationParam.Builder |
setL(NestedLocalizableMessage l)
Nested localizable value associated with the parameter.
|
LocalizationParam.Builder |
setPrecision(java.lang.Long precision)
Number of fractional digits to include in formatted
double value. |
LocalizationParam.Builder |
setS(java.lang.String s)
String value associated with the parameter. |
public LocalizationParam.Builder()
LocalizationParam
.public LocalizationParam.Builder setS(java.lang.String s)
String
value associated with the parameter. Warning:
This property is part of a new feature in development. It may be changed at any
time and may not have all supported functionality implemented.
this property will be set when String
value is used.s
- New value for the property.public LocalizationParam.Builder setDt(java.util.Calendar dt)
getFormat()
property to specify date and time display style. Warning: This property
is part of a new feature in development. It may be changed at any time and may
not have all supported functionality implemented.
this property will be set when date and time value is used.dt
- New value for the property.public LocalizationParam.Builder setI(java.lang.Long i)
long
value associated with the parameter. Warning: This property
is part of a new feature in development. It may be changed at any time and may
not have all supported functionality implemented.
this property will be set when long
value is used.i
- New value for the property.public LocalizationParam.Builder setD(java.lang.Double d)
double
value associated with the parameter. The number of displayed
fractional digits is changed via getPrecision()
property.
Warning: This property is part of a new feature in development. It may be
changed at any time and may not have all supported functionality implemented.
this property will be set when double
value is used.d
- New value for the property.public LocalizationParam.Builder setL(NestedLocalizableMessage l)
boolean
values. It can also be used for proper handling of pluralization and
gender forms in localization. Recursive NestedLocalizableMessage
instances can be used for localizing short lists of items. Warning: This
property is part of a new feature in development. It may be changed at any time
and may not have all supported functionality implemented.
this property will be set when nested localization message value is used.l
- New value for the property.public LocalizationParam.Builder setFormat(LocalizationParam.DateTimeFormat format)
getDt()
property. The
enumeration constant SHORT_DATETIME
will be used as default.
Warning: This property is part of a new feature in development. It may be
changed at any time and may not have all supported functionality implemented.
this may not be set if enumeration constant SHORT_DATETIME
default
format is appropriateformat
- New value for the property.public LocalizationParam.Builder setPrecision(java.lang.Long precision)
double
value.
Warning: This property is part of a new feature in development. It may be
changed at any time and may not have all supported functionality implemented.
this will be set when exact precision is required for rendering double
numbers.precision
- New value for the property.public LocalizationParam build()