*/
public class ParseHandler{
- private TaxonName taxonName;
-
private class MatchMatrix {
List<TaxonName> duplicateNames = new ArrayList<>();
List<INomenclaturalReference> duplicateReferences = new ArrayList<>();
List<INomenclaturalReference> duplicateInReferences = new ArrayList<>();
- List<TeamOrPersonBase> duplicateCombinationAuthorships = new ArrayList<>();
- List<TeamOrPersonBase> duplicateExCombinationAuthorships = new ArrayList<>();
- List<TeamOrPersonBase> duplicateBasionymAuthorships = new ArrayList<>();
- List<TeamOrPersonBase> duplicateExBasionymAuthorships = new ArrayList<>();
+ List<TeamOrPersonBase<?>> duplicateCombinationAuthorships = new ArrayList<>();
+ List<TeamOrPersonBase<?>> duplicateExCombinationAuthorships = new ArrayList<>();
+ List<TeamOrPersonBase<?>> duplicateBasionymAuthorships = new ArrayList<>();
+ List<TeamOrPersonBase<?>> duplicateExBasionymAuthorships = new ArrayList<>();
}
private static NonViralNameParserImpl nonViralNameParser = NonViralNameParserImpl.NewInstance();
/**
* Creates a new instance
- *
- * @param textWidget
- * @param name
*/
private ParseHandler(TaxonName name){
if(name == null){
}
/**
- * Parses a given string and returns a <code>TaxonNameBase</code> instance with the
+ * Parses a given string and returns a <code>TaxonName</code> instance with the
* results of the parsing.
*
* This method should be used to quickly create a new name from a string.
}
/**
- * Creates an empty <code>TaxonNameBase</code> instance with the nomenclatural code
+ * Creates an empty <code>TaxonName</code> instance with the nomenclatural code
* currently set in preferences.
*
* @return a {@link eu.etaxonomy.cdm.model.name.TaxonNameBase} object.
return new ArrayList<INomenclaturalReference>();
}
try{
-
return CdmStore.getCommonService().findMatching(nomenclaturalReference, MatchStrategy.Reference);
-
}catch (MatchException e) {
MessagingUtils.error(this.getClass(), "Error finding matching references", e);
}
* @param authorTeam The TeamOrPersonBase to find matches for.
* @return A <code>List</code> of possibly matching TeamOrPersonBase's.
*/
- private List<TeamOrPersonBase> findMatchingAuthors(TeamOrPersonBase authorTeam) {
+ private List<TeamOrPersonBase<?>> findMatchingAuthors(TeamOrPersonBase<?> authorTeam) {
if(authorTeam == null){
- return new ArrayList<TeamOrPersonBase>();
+ return new ArrayList<>();
}
-
try{
-
return CdmStore.getCommonService().findMatching(authorTeam, MatchStrategy.TeamOrPerson);
}catch (MatchException e) {
* @return A <code>List</code> of possibly matching TaxonNameBase's.
*/
private List<TaxonName> findMatchingLatinNames(ITaxonNameBase taxonName) {
-
try {
-
return CdmStore.getCommonService().findMatching(TaxonName.castAndDeproxy(taxonName), MatchStrategy.NonViralName);
-
-
} catch (MatchException e) {
MessagingUtils.error(this.getClass(), "Error finding matching names", e);
}