public static enum MessagePattern.ArgType extends Enum<MessagePattern.ArgType>
Enum Constant and Description |
---|
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 cardinal-number 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.
|
SELECTORDINAL
The argument is an ordinal-number PluralFormat
with the same style parts sequence and semantics as
PLURAL . |
SIMPLE
The argument has a "simple" type which is provided by the ARG_TYPE part.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasPluralStyle() |
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.
|
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
public static final MessagePattern.ArgType SELECTORDINAL
PLURAL
.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 nameNullPointerException
- if the argument is nullpublic boolean hasPluralStyle()
PLURAL
and SELECTORDINAL
.Copyright © 2016 Unicode, Inc. and others.