public interface NameParser
Modifier and Type | Method and Description |
---|---|
ParsedName |
parse(String scientificName)
Delegate method to parse a scientific name of unknown rank.
|
ParsedName |
parse(String scientificName,
Rank rank)
Fully parse the supplied name also trying to extract authorships, a conceptual sec reference, remarks or notes
on the nomenclatural status.
|
ParsedName |
parseQuietly(String scientificName)
Delegate method to parse a scientific name of unknown rank quietly.
|
ParsedName |
parseQuietly(String scientificName,
Rank rank)
Fully parses a name using #parse(String, Rank) but converts names that throw a UnparsableException
into ParsedName objects with the scientific name, rank and name type given.
|
String |
parseToCanonical(String scientificName)
Delegate method to parse a scientific name of unknown rank and return its canonical form.
|
String |
parseToCanonical(String scientificName,
Rank rank)
Parses the scientific name without authorship and returns the ParsedName.canonicalName() string
|
ParsedName parse(String scientificName, @Nullable Rank rank) throws UnparsableException
scientificName
- the full scientific name to parserank
- the rank of the name if it is known externally. Helps identifying infrageneric names vs bracket authorsUnparsableException
ParsedName parse(String scientificName) throws UnparsableException
UnparsableException
ParsedName parseQuietly(String scientificName, @Nullable Rank rank)
ParsedName parseQuietly(String scientificName)
String parseToCanonical(String scientificName, @Nullable Rank rank)
scientificName
- the full scientific name to parserank
- the rank of the name if it is known externally. Helps identifying infrageneric names vs bracket authorsString parseToCanonical(String scientificName)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.