public enum NameParserEnum extends java.lang.Enum<NameParserEnum>
| Enum Constant and Description |
|---|
English
Represents a parser to handle english names.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Name |
parse(java.lang.String name)
Parses the text as a name and returns it as a
Name object |
static NameParserEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NameParserEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NameParserEnum English
public static NameParserEnum[] values()
for (NameParserEnum c : NameParserEnum.values()) System.out.println(c);
public static NameParserEnum valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Nullable @RequiredVersion(value=1) public abstract Name parse(@NotNull java.lang.String name)
Name objectname - The string representing the nameName object that corresponds to the entered stringjava.lang.IllegalArgumentException - If the name cannot be parsed