|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MessagePattern.ArgType>
com.ibm.icu.text.MessagePattern.ArgType
public static enum MessagePattern.ArgType
Argument type constants. Returned by Part.getArgType() for ARG_START and ARG_LIMIT parts. Messages nested inside an argument are each delimited by MSG_START and MSG_LIMIT, with a nesting level one greater than the surrounding message.
| Enum Constant Summary | |
|---|---|
CHOICE
The argument is a ChoiceFormat with one or more ((ARG_INT | ARG_DOUBLE), ARG_SELECTOR, message) tuples. |
|
NONE
The argument has no specified type. |
|
PLURAL
The argument is a PluralFormat with an optional ARG_INT or ARG_DOUBLE offset (e.g., offset:1) and one or more (ARG_SELECTOR [explicit-value] message) tuples. |
|
SELECT
The argument is a SelectFormat with one or more (ARG_SELECTOR, message) pairs. |
|
SIMPLE
The argument has a "simple" type which is provided by the ARG_TYPE part. |
|
| Method Summary | |
|---|---|
static MessagePattern.ArgType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MessagePattern.ArgType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MessagePattern.ArgType NONE
public static final MessagePattern.ArgType SIMPLE
public static final MessagePattern.ArgType CHOICE
public static final MessagePattern.ArgType PLURAL
public static final MessagePattern.ArgType SELECT
| Method Detail |
|---|
public static MessagePattern.ArgType[] values()
for (MessagePattern.ArgType c : MessagePattern.ArgType.values()) System.out.println(c);
public static MessagePattern.ArgType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||