public enum NumberAgreement extends Enum<NumberAgreement>
An enumeration representing the different types of number agreement. The
number agreement is recorded in the Feature.NUMBER feature and
applies to nouns and verbs, and their associated phrases.
| Enum Constant and Description |
|---|
BOTH
This represents words that have the same form regardless of whether they
are singular or plural.
|
PLURAL
This represents verbs and nouns that are written in the plural.
|
SINGULAR
This represents verbs and nouns that are written in the singular.
|
| Modifier and Type | Method and Description |
|---|---|
static NumberAgreement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberAgreement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberAgreement BOTH
public static final NumberAgreement PLURAL
public static final NumberAgreement SINGULAR
public static NumberAgreement[] values()
for (NumberAgreement c : NumberAgreement.values()) System.out.println(c);
public static NumberAgreement 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 nullCopyright © 2020. All Rights Reserved.