public static enum MessageFormatUtils.MessageStyle extends Enum<MessageFormatUtils.MessageStyle>
Enum Constant and Description |
---|
MESSAGE_FORMAT |
PLAIN |
Modifier and Type | Method and Description |
---|---|
abstract String |
assemble(List<MessageFormatUtils.TemplateChunk> message)
Assemble a message from its parsed chunks.
|
abstract List<MessageFormatUtils.TemplateChunk> |
parse(String template)
Parse a message into chunks.
|
void |
parseAccept(String template,
MessageFormatUtils.TemplateChunkVisitor visitor)
Parse a message template and call the supplied visitor on each parsed
chunk.
|
static MessageFormatUtils.MessageStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageFormatUtils.MessageStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, createValueOfMap, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf, valueOf
$isInstance
public static final MessageFormatUtils.MessageStyle PLAIN
public static final MessageFormatUtils.MessageStyle MESSAGE_FORMAT
public static MessageFormatUtils.MessageStyle[] values()
for (MessageFormatUtils.MessageStyle c : MessageFormatUtils.MessageStyle.values()) System.out.println(c);
public static MessageFormatUtils.MessageStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract String assemble(List<MessageFormatUtils.TemplateChunk> message) throws MessageFormatUtils.VisitorAbortException
message
- MessageFormatUtils.VisitorAbortException
public abstract List<MessageFormatUtils.TemplateChunk> parse(String template) throws ParseException
template
- ParseException
public void parseAccept(String template, MessageFormatUtils.TemplateChunkVisitor visitor) throws ParseException, MessageFormatUtils.VisitorAbortException
template
- visitor
- ParseException
MessageFormatUtils.VisitorAbortException
Copyright © 2018. All rights reserved.