MessageFormatUtils
instead@Deprecated public class MessageFormatParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MessageFormatParser.ArgumentChunk
Deprecated.
Represents an argument in a template string.
|
static class |
MessageFormatParser.DefaultTemplateChunkVisitor
Deprecated.
Default implementation of TemplateChunkVisitor -- other implementations
should extend this if possible to avoid breakage when new TemplateChunk
subtypes are added.
|
static class |
MessageFormatParser.StaticArgChunk
Deprecated.
Represents a static argument, which is used to remove markup from
translator view without having to supply it at each callsite.
|
static class |
MessageFormatParser.StringChunk
Deprecated.
Represents a literal string portion of a template string.
|
static class |
MessageFormatParser.TemplateChunk
Deprecated.
Represents a parsed chunk of a template.
|
static interface |
MessageFormatParser.TemplateChunkVisitor
Deprecated.
Visitor for template chunks.
|
Constructor and Description |
---|
MessageFormatParser()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
assemble(Iterable<MessageFormatParser.TemplateChunk> parts)
Deprecated.
Generate a MessageFormat-style string representing the supplied components,
properly quoting any special characters in string literal portions.
|
static List<MessageFormatParser.TemplateChunk> |
parse(String template)
Deprecated.
|
public static String assemble(Iterable<MessageFormatParser.TemplateChunk> parts)
parts
- list of TemplateChunks to assemblepublic static List<MessageFormatParser.TemplateChunk> parse(String template) throws ParseException
ParseException
Copyright © 2016. All rights reserved.