@Deprecated public static class MessageFormatter.Builder extends Object
Builder
used to build instances of MessageFormatter
.Modifier and Type | Method and Description |
---|---|
MessageFormatter |
build()
Deprecated.
This API is for technology preview only.
|
MessageFormatter.Builder |
setDataModel(MFDataModel.Message dataModel)
Deprecated.
This API is for technology preview only.
|
MessageFormatter.Builder |
setErrorHandlingBehavior(MessageFormatter.ErrorHandlingBehavior errorHandlingBehavior)
Deprecated.
This API is for technology preview only.
|
MessageFormatter.Builder |
setFunctionRegistry(MFFunctionRegistry functionRegistry)
Deprecated.
This API is for technology preview only.
|
MessageFormatter.Builder |
setLocale(Locale locale)
Deprecated.
This API is for technology preview only.
|
MessageFormatter.Builder |
setPattern(String pattern)
Deprecated.
This API is for technology preview only.
|
@Deprecated public MessageFormatter.Builder setLocale(Locale locale)
locale
- the locale to set.@Deprecated public MessageFormatter.Builder setPattern(String pattern)
pattern
- the pattern to set.@Deprecated public MessageFormatter.Builder setErrorHandlingBehavior(MessageFormatter.ErrorHandlingBehavior errorHandlingBehavior)
MessageFormatter.ErrorHandlingBehavior
to use when encountering errors at formatting time.
The default value is ErrorHandlingBehavior.BEST_EFFORT
, trying to fallback.
the
- error handling behavior to use.@Deprecated public MessageFormatter.Builder setFunctionRegistry(MFFunctionRegistry functionRegistry)
MFFunctionRegistry
that should register any
custom functions used by the message.
There is no need to do this in order to use standard functions
(for example date / time / number formatting, plural / ordinal / literal selection).
The exact set of standard functions, with the types they format and the options
they accept is still TBD.
functionRegistry
- the function registry to set.@Deprecated public MessageFormatter.Builder setDataModel(MFDataModel.Message dataModel)
dataModel
- the pattern to set.@Deprecated public MessageFormatter build()
MessageFormatter
.MessageFormatter
created.Copyright © 2016 Unicode, Inc. and others.