//problem start
int start = nameToBeFilled.getProblemStarts();
- int nameLength = name.length();
int nameAndSeparatorLength = nameAndSeparator.length();
- int fullRefLength = nameToBeFilled.getFullTitleCache().length();
if (nameToBeFilled.isProtectedTitleCache() || nameToBeFilled.getParsingProblems().contains(ParserProblem.CheckRank)){
start = Math.max(0, start);
//TODO make it an Array of status
/**
* Extracts a {@link NomenclaturalStatus} from the reference String and adds it to the @link {@link TaxonName}.
- * The nomenclatural status part ist deleted from the reference String.
+ * The nomenclatural status part is deleted from the reference String.
* @return String the new (shortend) reference String
*/
public String parseNomStatus(String fullString, INonViralName nameToBeFilled, boolean makeEmpty) {
- Set<NomenclaturalStatusType> existingStatusTypeSet = new HashSet<NomenclaturalStatusType>();
- Set<NomenclaturalStatusType> newStatusTypeSet = new HashSet<NomenclaturalStatusType>();
+ Set<NomenclaturalStatusType> existingStatusTypeSet = new HashSet<>();
+ Set<NomenclaturalStatusType> newStatusTypeSet = new HashSet<>();
for (NomenclaturalStatus existingStatus : nameToBeFilled.getStatus()){
existingStatusTypeSet.add(existingStatus.getType());
}
}
//remove not existing nom status
if (makeEmpty){
- Set<NomenclaturalStatus> tmpStatus = new HashSet<NomenclaturalStatus>();
+ Set<NomenclaturalStatus> tmpStatus = new HashSet<>();
tmpStatus.addAll(nameToBeFilled.getStatus());
for (NomenclaturalStatus status : tmpStatus){
if (! newStatusTypeSet.contains(status.getType())){
protected static String pPages = "(" + pSinglePages +"|" + pMultiPages +")";
protected static String pPagesTabFig = pPages +"([,\\.]" + fWs + pTabFigPl + "){1,2}";
-
-
protected static String pCouv = "couv\\." + fWs + "\\d{1,3}";
protected static String pTabSpecial = "tab\\." + fWs + "(ad" + fWs + "\\d{1,3}|alphab)";
protected static String pNomStatusPhrase = "(?:" + pNomStatusPhrase1 + "|" + pNomStatusPhrase2 + ")";
// Soraya
-//opus utique oppr.
//pro syn.
//provisional synonym
//fossil name
-
//cultivars and hybrids
- protected static String cultivar = oWs + "'..+'"; //Achtung mit Hochkomma in AuthorNamen
+ protected static String cultivar = oWs + "'..+'"; //Careful with apostorph in author names
protected static String cultivarMarker = oWs + "(cv\\.|')";
protected static String notho = "notho";
protected static String hybridPart = "([xX]" + oWs + "|"+hybridSign+"|"+notho+")";