public class NonViralNameParserImpl extends NonViralNameParserImplRegExBase implements INonViralNameParser<INonViralName>
TaxonName
s of type NonViralName and below.abbrevHybridGenus, abbrevHybridSecondPart, abbrevHybridSecondPartOnlyInfraSpecies, abbrevHybridSecondPartWithSpecies, aggrOrGroup, aggrOrGroupMarker, aggrOrGroupPattern, anyBotanicFullName, anyBotanicFullNamePattern, anyBotanicName, anyEnd, anyFullName, anySepChar, anyZooFullName, anyZooFullNamePattern, anyZooName, apostropheWord, author, authorAndExTeam, authorPart, authorPrefix, authorSeparatorMaxPosition, authorTeam, autonym, autonym2, autonymPattern, basEnd, basionymAuthor, basionymPattern, basStart, botanicBasionymAuthor, botanicBasionymPattern, bracketVolume, capital2charDotWord, capital2LetterWord, capitalDotWord, capitalEpiWord, capitalWord, correctYearPhrase, cultivar, cultivarMarker, cultivarMarkerPattern, cultivarPattern, detail, detailSeparator, dotSpaceOrBoth, dotWord, editionSeparator, end, epiSplitter, exAuthorPattern, exString, facultFullAuthorString2, facultFullBotanicAuthorString, facultFullZooAuthorString, finalTeamSplitter, finalTeamSplitterPattern, firstTitleWord, fullAuthorString, fullAuthorStringPattern, fullBotanicAuthorString, fullBotanicAuthorStringPattern, fullZooAuthorString, fullZooAuthorStringPattern, fWs, genusAutonym, genusAutonymPattern, genusOrSupraGenus, genusOrSupraGenusPattern, hybridFormulaPattern, hybridFormularSeparator, hybridFull, hybridFullName, hybridPart, hybridSecondPart, hybridSign, infraGenus, InfraGenusMarker, infraGenusPattern, infraSpecies, infraSpeciesMarker, infraSpeciesMarkerNoNotho, infraSpeciesPattern, inReferenceSeparator, month, nonCapitalDotWord, nonCapitalEpiWord, nonCapitalWord, noNothoHybridPart, notFinalTeamSplitter, notho, nr2, nr4, nr5, obligateDotWord, oldInfraSpecies, oldInfraSpeciesMarker, oldInfraSpeciesPattern, oWs, oWsPattern, pAbcNr, pArticleReference, pattern, pBookReference, pBookSectionReference, pBracketNr, pCouv, pDetailAlternatives, pEdition, pEditionPart, pEditionVolAlternative, pEditionVolPart, pFolBracket, pMultiPages, pNomStatus, pNomStatusComb, pNomStatusIned, pNomStatusNom, pNomStatusOpus, pNomStatusOrthVar, pNomStatusPhrase, pNomStatusPhrase1, pNomStatusPhrase2, pPage, pPages, pPageSpecial, pPagesTabFig, pRangeSep, pRangeSepCo, pReference, pReferenceSineDetail, pSeriesPart, pSinglePages, pSoftArticleReference, pSpecialDetail, pSpecialGardDict, pStart, pStrNo, pTabFigPl, pTabFigPlate, pTabFigPlateNumber, pTabFigPlateNumbers, pTabFigPlateStart, pTabSpecial, pTitleWordSeparator, pVolPart, pVolRefTitle, qm, quotations, referenceAuthorSeparator, referenceEnd, referencePattern, referenceSeparator1, referenceSeperator, referenceSineDetailPattern, referenceTitle, referenceTitleFirstPart, referenceTitleWithoutAuthor, referenceTitleWithPlaceBracket, referenceTitleWithSepCharacters, referenceTitleWithSepCharactersAndBrackets, simpleRoman, singleYear, softEditionVolRefTitle, softVolNoAuthorRefTitle, species, speciesPattern, speciesWithInfraGen, speciesWithInfraGenPattern, specificEpi, spNov, spNovPattern, status, twoCapitalDotWord, undefinedYearPhrase, uppercaseWord, verbatimYearPhrase, verbEnd, verbStart, volume, volumeSeparator, word, yearPhrase, yearSeperator, zooAuthorAddidtion, zooAuthorAddidtionPattern, zooAuthorPattern, zooAuthorTeam, zooAuthorYearSeperator, zooBasionymAuthor, zooBasionymPattern, zooInfraSpecies, zooInfraSpeciesPattern
Constructor and Description |
---|
NonViralNameParserImpl() |
Modifier and Type | Method and Description |
---|---|
TeamOrPersonBase<?> |
author(java.lang.String authorString)
Parses an author (person or team) string and returns the Person or Team.
|
protected void |
authorsAndEx(java.lang.String authorShipStringOrig,
TeamOrPersonBase<?>[] authors,
java.lang.Integer[] years)
Parses the author and ex-author String
|
protected void |
fullAuthors(java.lang.String fullAuthorStringOrig,
TeamOrPersonBase<?>[] authors,
java.lang.Integer[] years,
NomenclaturalCode code)
Parses the fullAuthorString
|
protected void |
fullAuthorsChecked(java.lang.String fullAuthorString,
TeamOrPersonBase<?>[] authors,
java.lang.Integer[] years) |
INonViralName |
getNonViralNameInstance(java.lang.String fullString,
NomenclaturalCode code) |
INonViralName |
getNonViralNameInstance(java.lang.String fullString,
NomenclaturalCode code,
Rank rank) |
void |
handleAuthors(INonViralName nameToBeFilled,
java.lang.String fullNameString,
java.lang.String authorString) |
boolean |
isRemoveSpaceAfterDot()
If
true author names are parsed such that spaces after the abbreviated
givenname are removed (IPNI style). |
static NonViralNameParserImpl |
NewInstance() |
void |
parseAuthors(INonViralName nonViralNameOrig,
java.lang.String authorString)
Author parser for external use
|
IBotanicalName |
parseCultivar(java.lang.String fullName) |
protected Team |
parsedTeam(java.lang.String authorString)
Parses an authorString (representing a team into the single authors and add
them to the return Team.
|
void |
parseFullName(INonViralName nameToBeFilledOrig,
java.lang.String fullNameStringOrig,
Rank rank,
boolean makeEmpty)
Parses the taxon name String and fills the result into the existing TaxonName nameToBeFilled.
|
INonViralName |
parseFullName(java.lang.String fullNameString)
Parses the taxon name String and returns a TaxonName.
|
INonViralName |
parseFullName(java.lang.String fullNameString,
NomenclaturalCode nomCode,
Rank rank)
Parses the taxon name String and returns a TaxonName.
|
java.lang.String |
parseNomStatus(java.lang.String fullString,
INonViralName nameToBeFilled,
boolean makeEmpty)
Extracts a
NomenclaturalStatus from the reference String and adds it to the @link TaxonName . |
void |
parseReferencedName(INonViralName nameToBeFilled,
java.lang.String fullReferenceStringOrig,
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. |
TaxonName |
parseReferencedName(java.lang.String fullReferenceString) |
TaxonName |
parseReferencedName(java.lang.String fullReferenceString,
NomenclaturalCode nomCode,
Rank rank) |
INomenclaturalReference |
parseReferenceTitle(java.lang.String strReference,
java.lang.String year,
boolean isInReference)
Parses the referenceTitlePart, including the author volume and edition.
|
void |
parseSimpleName(INonViralName nameToBeFilled,
java.lang.String simpleNameString,
Rank rank,
boolean makeEmpty) |
INonViralName |
parseSimpleName(java.lang.String simpleName)
Parses the taxon name String and returns a TaxonName.
|
INonViralName |
parseSimpleName(java.lang.String simpleName,
NomenclaturalCode code,
Rank rank)
Parses the taxon name String and returns a TaxonName.
|
void |
setRemoveSpaceAfterDot(boolean removeSpaceAfterDot) |
protected void |
zooOrBotanicAuthor(java.lang.String authorString,
TeamOrPersonBase<?>[] team,
java.lang.Integer[] year)
Parses the authorString and if it matches an botanical or zoological authorTeam it fills
the computes the AuthorTeam and fills it into the first field of the team array.
|
public static NonViralNameParserImpl NewInstance()
public INonViralName parseSimpleName(java.lang.String simpleName)
INonViralNameParser
parseSimpleName
in interface INonViralNameParser<INonViralName>
simpleName
- the scientific name string without authorship, year, reference etc.public INonViralName parseSimpleName(java.lang.String simpleName, NomenclaturalCode code, Rank rank)
INonViralNameParser
parseSimpleName
in interface INonViralNameParser<INonViralName>
simpleName
- the scientific name string without authorship, year, reference etc.public void parseSimpleName(INonViralName nameToBeFilled, java.lang.String simpleNameString, Rank rank, boolean makeEmpty)
public INonViralName getNonViralNameInstance(java.lang.String fullString, NomenclaturalCode code)
public INonViralName getNonViralNameInstance(java.lang.String fullString, NomenclaturalCode code, Rank rank)
public TaxonName parseReferencedName(java.lang.String fullReferenceString)
parseReferencedName
in interface INonViralNameParser<INonViralName>
fullReferenceString
- the string containing the scientific name with authorship, year, reference etc.public TaxonName parseReferencedName(java.lang.String fullReferenceString, NomenclaturalCode nomCode, Rank rank)
parseReferencedName
in interface INonViralNameParser<INonViralName>
INonViralNameParser.parseFullReference(T nameToBeFilled, String fullReference, Rank rank, boolean makeEmpty)
public void parseReferencedName(INonViralName nameToBeFilled, java.lang.String fullReferenceStringOrig, Rank rank, boolean makeEmpty)
INonViralNameParser
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
.parseReferencedName
in interface INonViralNameParser<INonViralName>
nameToBeFilled
- an existing name objectfullReferenceStringOrig
- the string containing the scientific name with authorship, year, reference etc.makeEmpty
- if this parameter is set to true, the name objects will nulled. All information
formerly attached to this name will be lost.public java.lang.String parseNomStatus(java.lang.String fullString, INonViralName nameToBeFilled, boolean makeEmpty)
NomenclaturalStatus
from the reference String and adds it to the @link TaxonName
.
The nomenclatural status part ist deleted from the reference String.public INomenclaturalReference parseReferenceTitle(java.lang.String strReference, java.lang.String year, boolean isInReference)
reference
- year
- public INonViralName parseFullName(java.lang.String fullNameString)
INonViralNameParser
parseFullName
in interface INonViralNameParser<INonViralName>
fullNameString
- the string containing the scientific name with authorship but without year, reference etc.public INonViralName parseFullName(java.lang.String fullNameString, NomenclaturalCode nomCode, Rank rank)
INonViralNameParser
parseFullName
in interface INonViralNameParser<INonViralName>
fullNameString
- the string containing the scientific name with authorship but without year, reference etc.public void parseFullName(INonViralName nameToBeFilledOrig, java.lang.String fullNameStringOrig, Rank rank, boolean makeEmpty)
INonViralNameParser
parseFullName
in interface INonViralNameParser<INonViralName>
nameToBeFilledOrig
- The TaxonName to be filledfullNameStringOrig
- the string containing the scientific name with authorship but without year, reference etc.public void parseAuthors(INonViralName nonViralNameOrig, java.lang.String authorString) throws StringNotParsableException
parseAuthors
in interface INonViralNameParser<INonViralName>
nonViralName
- authorString
- StringNotParsableException
public void handleAuthors(INonViralName nameToBeFilled, java.lang.String fullNameString, java.lang.String authorString)
nameToBeFilled
- fullNameString
- authorString
- protected void fullAuthors(java.lang.String fullAuthorStringOrig, TeamOrPersonBase<?>[] authors, java.lang.Integer[] years, NomenclaturalCode code) throws StringNotParsableException
fullAuthorString
- StringNotParsableException
protected void fullAuthorsChecked(java.lang.String fullAuthorString, TeamOrPersonBase<?>[] authors, java.lang.Integer[] years)
protected void authorsAndEx(java.lang.String authorShipStringOrig, TeamOrPersonBase<?>[] authors, java.lang.Integer[] years)
authorShipStringOrig
- String representing the author and the ex-author teamprotected void zooOrBotanicAuthor(java.lang.String authorString, TeamOrPersonBase<?>[] team, java.lang.Integer[] year)
authorString
- team
- year
- public TeamOrPersonBase<?> author(java.lang.String authorString)
authorString
- String representing the authorprotected Team parsedTeam(java.lang.String authorString)
authorString
- public IBotanicalName parseCultivar(java.lang.String fullName) throws StringNotParsableException
StringNotParsableException
public boolean isRemoveSpaceAfterDot()
true
author names are parsed such that spaces after the abbreviated
givenname are removed (IPNI style). see #7094public void setRemoveSpaceAfterDot(boolean removeSpaceAfterDot)
isRemoveSpaceAfterDot()
Copyright © 2007-2020 EDIT. All Rights Reserved.