public interface INonViralNameParser<T extends INonViralName> extends IStrategy
hasProblem
flag
of the taxon name
instance will be set.
Some of the parser methods for taxon names create also a TaxonName
instance while other ones only fill the result into an existing
TaxonName instance.Modifier and Type | Method and Description |
---|---|
void |
parseAuthors(INonViralName nonViralName,
java.lang.String authorString) |
T |
parseFullName(java.lang.String fullName)
Parses the taxon name String and returns a TaxonName.
|
T |
parseFullName(java.lang.String fullName,
NomenclaturalCode nomCode,
Rank rank)
Parses the taxon name String and returns a TaxonName.
|
void |
parseFullName(T nameToBeFilled,
java.lang.String fullName,
Rank rank,
boolean makeEmpty)
Parses the taxon name String and fills the result into the existing TaxonName nameToBeFilled.
|
T |
parseReferencedName(java.lang.String fullReference) |
T |
parseReferencedName(java.lang.String fullReference,
NomenclaturalCode nomCode,
Rank rank) |
void |
parseReferencedName(T nameToBeFilled,
java.lang.String fullReference,
Rank rank,
boolean makeEmpty)
Parses a String (fullReference) assuming that it represents a taxonomic name, it's reference,
and it's nomenclatural status.
Status: First the last part of the string is checked if it represents a nomenclatural status (e.g. |
T |
parseSimpleName(java.lang.String simpleName)
Parses the taxon name String and returns a TaxonName.
|
T |
parseSimpleName(java.lang.String simpleName,
NomenclaturalCode code,
Rank rank)
Parses the taxon name String and returns a TaxonName.
|
T parseSimpleName(java.lang.String simpleName, NomenclaturalCode code, Rank rank)
simpleName
- the scientific name string without authorship, year, reference etc.rank
- T parseSimpleName(java.lang.String simpleName)
simpleName
- the scientific name string without authorship, year, reference etc.T parseFullName(java.lang.String fullName)
fullName
- the string containing the scientific name with authorship but without year, reference etc.T parseFullName(java.lang.String fullName, NomenclaturalCode nomCode, Rank rank)
fullName
- the string containing the scientific name with authorship but without year, reference etc.rank
- void parseFullName(T nameToBeFilled, java.lang.String fullName, Rank rank, boolean makeEmpty)
fullName
- the string containing the scientific name with authorship but without year, reference etc.rank
- nameToBeFilled
- The TaxonName to be filledT parseReferencedName(java.lang.String fullReference)
fullReference
- the string containing the scientific name with authorship, year, reference etc.T parseReferencedName(java.lang.String fullReference, NomenclaturalCode nomCode, Rank rank)
fullReference
- nomCode
- rank
- INonViralNameParser.parseFullReference(T nameToBeFilled, String fullReference, Rank rank, boolean makeEmpty)
void parseReferencedName(T nameToBeFilled, java.lang.String fullReference, Rank rank, boolean makeEmpty)
true
. The same applies
if the name can be parsed but is followed by a not empty String that does not start with a
reference separator ("," of " in ").false
.true
.false
.
Then, and only then, the name's hasProblem flag is set to false
.nameToBeFilled
- an existing name objectfullReference
- the string containing the scientific name with authorship, year, reference etc.rank
- makeEmpty
- if this parameter is set to true, the name objects will nulled. All information
formerly attached to this name will be lost.void parseAuthors(INonViralName nonViralName, java.lang.String authorString) throws StringNotParsableException
StringNotParsableException
Copyright © 2007-2020 EDIT. All Rights Reserved.