Package com.ibm.icu.message2
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 boolean
Deprecated.private static final Pattern
Deprecated.private final StringBuilder
Deprecated.private boolean
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Deprecated.private void
annotationToString
(MFDataModel.Annotation annotation) Deprecated.private void
attributesToString
(List<MFDataModel.Attribute> attributes) Deprecated.static String
dataModelToString
(MFDataModel.Message message) Deprecated.This API is for technology preview only.private void
declarationsToString
(List<MFDataModel.Declaration> declarations) Deprecated.private void
Deprecated.private void
Deprecated.private void
Deprecated.private void
expressionToString
(MFDataModel.Expression expression) Deprecated.private void
Deprecated.private void
inputDeclarationToString
(MFDataModel.InputDeclaration declaration) Deprecated.private void
Deprecated.private void
literalOrVariableRefToString
(MFDataModel.LiteralOrVariableRef literalOrVarRef) Deprecated.private void
literalToString
(MFDataModel.Literal literal) Deprecated.private void
localDeclarationToString
(MFDataModel.LocalDeclaration declaration) Deprecated.private void
markupToString
(MFDataModel.Markup markup) Deprecated.private String
messageToString
(MFDataModel.Message message) Deprecated.private void
optionsToString
(Map<String, MFDataModel.Option> options) Deprecated.private void
Deprecated.private void
patternToString
(MFDataModel.Pattern pattern) Deprecated.private void
Deprecated.private void
Deprecated.private void
Deprecated.private void
variantToString
(MFDataModel.Variant variant) Deprecated.
-
Field Details
-
shouldDoubleQuotePattern
private boolean shouldDoubleQuotePatternDeprecated. -
needSpace
private boolean needSpaceDeprecated. -
result
Deprecated. -
RE_NUMBER_LITERAL
Deprecated.
-
-
Constructor Details
-
MFSerializer
public MFSerializer()Deprecated.
-
-
Method Details
-
dataModelToString
Deprecated.This API is for technology preview only.Method converting theMFDataModel.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
-
messageToString
Deprecated. -
selectMessageToString
Deprecated. -
patternMessageToString
Deprecated. -
patternToString
Deprecated. -
expressionToString
Deprecated. -
markupToString
Deprecated. -
optionsToString
Deprecated. -
functionExpressionToString
Deprecated. -
attributesToString
Deprecated. -
annotationToString
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
Deprecated. -
error
Deprecated. -
error
Deprecated.
-