|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.icu.text.MessagePatternUtil
public final class MessagePatternUtil
Utilities for working with a MessagePattern. Intended for use in tools when convenience is more important than minimizing runtime and object creations.
This class only has static methods. Each of the nested classes is immutable and thread-safe.
This class and its nested classes are not intended for public subclassing.
| Nested Class Summary | |
|---|---|
static class |
MessagePatternUtil.ArgNode
A piece of MessageNode contents representing a message argument and its details. |
static class |
MessagePatternUtil.ComplexArgStyleNode
A Node representing details of the argument style of a complex argument. |
static class |
MessagePatternUtil.MessageContentsNode
A piece of MessageNode contents. |
static class |
MessagePatternUtil.MessageNode
A Node representing a parsed MessageFormat pattern string. |
static class |
MessagePatternUtil.Node
Common base class for all elements in a tree of nodes returned by buildMessageNode(MessagePattern). |
static class |
MessagePatternUtil.TextNode
Literal text, a piece of MessageNode contents. |
static class |
MessagePatternUtil.VariantNode
A Node representing a nested message (nested inside an argument) with its selection criterium. |
| Method Summary | |
|---|---|
static MessagePatternUtil.MessageNode |
buildMessageNode(MessagePattern pattern)
Factory method, builds and returns a MessageNode from a MessagePattern. |
static MessagePatternUtil.MessageNode |
buildMessageNode(String patternString)
Factory method, builds and returns a MessageNode from a MessageFormat pattern string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MessagePatternUtil.MessageNode buildMessageNode(String patternString)
patternString - a MessageFormat pattern string
IllegalArgumentException - if the MessagePattern is empty
or does not represent a MessageFormat patternpublic static MessagePatternUtil.MessageNode buildMessageNode(MessagePattern pattern)
pattern - a parsed MessageFormat pattern string
IllegalArgumentException - if the MessagePattern is empty
or does not represent a MessageFormat pattern
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||