Class MFSerializer
java.lang.Object
com.ibm.icu.message2.MFSerializer
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanDeprecated.private final StringBuilderDeprecated.private booleanDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidDeprecated.private voidattributesToString(List<MFDataModel.Attribute> attributes) Deprecated.static StringdataModelToString(MFDataModel.Message message) Deprecated.This API is for technology preview only.private voiddeclarationsToString(List<MFDataModel.Declaration> declarations) Deprecated.private voidDeprecated.private voidDeprecated.private voidDeprecated.private voidexpressionToString(MFDataModel.Expression expression) Deprecated.private voidDeprecated.private voidfunctionToString(MFDataModel.FunctionRef function) Deprecated.private voidinputDeclarationToString(MFDataModel.InputDeclaration declaration) Deprecated.private voidDeprecated.private voidliteralOrVariableRefToString(MFDataModel.LiteralOrVariableRef literalOrVarRef) Deprecated.private voidliteralToString(MFDataModel.Literal literal) Deprecated.private voidlocalDeclarationToString(MFDataModel.LocalDeclaration declaration) Deprecated.private voidmarkupToString(MFDataModel.Markup markup) Deprecated.private StringmessageToString(MFDataModel.Message message) Deprecated.private voidoptionsToString(Map<String, MFDataModel.Option> options) Deprecated.private voidDeprecated.private voidpatternToString(MFDataModel.Pattern pattern) Deprecated.private voidDeprecated.private voidDeprecated.private voidDeprecated.private voidvariantToString(MFDataModel.Variant variant) Deprecated.
-
Field Details
-
shouldDoubleQuotePattern
private boolean shouldDoubleQuotePatternDeprecated. -
needSpace
private boolean needSpaceDeprecated. -
result
Deprecated.
-
-
Constructor Details
-
MFSerializer
Deprecated.This API is for technology preview only.
-
-
Method Details
-
dataModelToString
Deprecated.This API is for technology preview only.Method converting theMFDataModel.Messageto 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
-
messageToString
Deprecated. -
selectMessageToString
Deprecated. -
patternMessageToString
Deprecated. -
patternToString
Deprecated. -
expressionToString
Deprecated. -
markupToString
Deprecated. -
optionsToString
Deprecated. -
functionExpressionToString
Deprecated. -
attributesToString
Deprecated. -
functionToString
Deprecated. -
variableExpressionToString
Deprecated. -
literalOrVariableRefToString
Deprecated. -
literalToString
Deprecated. -
literalExpressionToString
Deprecated. -
stringPartToString
Deprecated. -
declarationsToString
Deprecated. -
inputDeclarationToString
Deprecated. -
localDeclarationToString
Deprecated. -
variantToString
Deprecated. -
addSpaceIfNeeded
private void addSpaceIfNeeded()Deprecated. -
errorType
-
error
-
error
Deprecated.
-