Top Description Inners Fields Constructors Methods
com.ibm.icu.message2

public Class Mf2DataModel

extends Object
Class Inheritance
Annotations
@Deprecated
@SuppressWarnings:javadoc
Imports
java.util.ArrayList, .Collection, .Collections, .LinkedHashMap, .List, .Map, .Map.Entry, .StringJoiner

Deprecated

This API is for technology preview only.

This maps closely to the official specification. Since it is not final, we will not add javadoc everywhere.

See the description of the syntax with examples and use cases and the corresponding EBNF.

ICU Status
Internal ICU component: 72 technology preview

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Mf2DataModel.Builder

Deprecated This API is for technology preview only.
public static class
Mf2DataModel.Expression

Deprecated This API is for technology preview only.
public static class
Mf2DataModel.OrderedMap<K, V>

Deprecated This API is for technology preview only.
This is only to not force LinkedHashMap on the public API.
public static interface
Mf2DataModel.Part

Deprecated This API is for technology preview only.
No functional role, this is only to be able to say that a message is a sequence of Part(s), and that plain text Text and Expression are Part(s).
public static class
Mf2DataModel.Pattern

Deprecated This API is for technology preview only.
public static class
Mf2DataModel.SelectorKeys

Deprecated This API is for technology preview only.
public static class
Mf2DataModel.Text

Deprecated This API is for technology preview only.
public static class
Mf2DataModel.Value

Deprecated This API is for technology preview only.
A Value can be either a Literal, or a Variable, but not both.
public static class
Mf2DataModel.Variable

Deprecated This API is for technology preview only.

Field Summary

Modifier and TypeField and Description
private final Mf2DataModel.OrderedMap<String, Mf2DataModel.Expression>
localVariables

Deprecated as a consequence of Mf2DataModel.OrderedMap being deprecated.
private final Mf2DataModel.Pattern
pattern

Deprecated as a consequence of Mf2DataModel.Pattern being deprecated.
private final List<Mf2DataModel.Expression>
private final Mf2DataModel.OrderedMap<Mf2DataModel.SelectorKeys, Mf2DataModel.Pattern>
variants

Deprecated as a consequence of Mf2DataModel.OrderedMap being deprecated.

Constructor Summary

AccessConstructor and Description
private
Mf2DataModel(Mf2DataModel.Builder builder)

Deprecated as a consequence of Mf2DataModel.Builder being deprecated.

Method Summary

Modifier and TypeMethod and Description
public static Mf2DataModel.Builder

Returns:

the Builder.
builder
()

Deprecated This API is for technology preview only.
Creates a builder.
public Mf2DataModel.OrderedMap<String, Mf2DataModel.Expression>
getLocalVariables()

Deprecated This API is for technology preview only.
public Mf2DataModel.Pattern
getPattern()

Deprecated This API is for technology preview only.
public List<Mf2DataModel.Expression>
getSelectors()

Deprecated This API is for technology preview only.
public Mf2DataModel.OrderedMap<Mf2DataModel.SelectorKeys, Mf2DataModel.Pattern>
getVariants()

Deprecated This API is for technology preview only.
public String
toString()

Overrides java.lang.Object.toString.

Deprecated This API is for technology preview only.
Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait