@RequiredVersion(value=1) public class EnglishNameParser extends java.lang.Object implements NameParser
Modifier and Type | Class and Description |
---|---|
static class |
EnglishNameParser.Builder
Builder class used to build parsers for english names.
|
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
ALL_HONORIFICS
A set of all honorifics (or honorifics).
|
static java.util.Set<java.lang.String> |
ALL_SUFFIXES
A set of all suffixes I can think of.
|
static java.util.Set<java.lang.String> |
DEFAULT_GENERATIONAL_SUFFIXES
A set of all suffixes I can think of.
|
Modifier and Type | Method and Description |
---|---|
Name |
parse(java.lang.String name)
Method that parses a name.
|
public static final java.util.Set<java.lang.String> ALL_HONORIFICS
public static final java.util.Set<java.lang.String> ALL_SUFFIXES
public static final java.util.Set<java.lang.String> DEFAULT_GENERATIONAL_SUFFIXES
public Name parse(@NotNull java.lang.String name) throws java.text.ParseException
NameParser
Name
that can then be used elsewhereparse
in interface NameParser
name
- The string representation of the nameName
object that was parsed. If the name fails to parse but no meaningful reason is given, null may be returned instead of throwing an
exceptionjava.text.ParseException
- If there is an error parsing the name