Class MFSerializer

java.lang.Object
org.graalvm.shadowed.com.ibm.icu.message2.MFSerializer

@Deprecated public class MFSerializer extends Object
Deprecated.
This API is for technology preview only.
This class serializes a MessageFormat 2 data model MFDataModel.Message to a string, with the proper MessageFormat 2 syntax.
  • Constructor Details

    • MFSerializer

      public MFSerializer()
      Deprecated.
  • Method Details

    • dataModelToString

      @Deprecated public static String dataModelToString(MFDataModel.Message message)
      Deprecated.
      This API is for technology preview only.
      Method converting the MFDataModel.Message to a string in MessageFormat 2 syntax.

      The result is not necessarily identical with the original string parsed to generate the data model. But is is functionally equivalent.

      Parameters:
      message - the data model message to serialize
      Returns:
      the serialized message, in MessageFormat 2 syntax