synonymy now only added to response on request
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Tue, 3 Feb 2015 14:30:08 +0000 (15:30 +0100)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Tue, 3 Feb 2015 14:30:08 +0000 (15:30 +0100)
20 files changed:
src/main/java/org/bgbm/biovel/drf/checklist/BaseChecklistClient.java
src/main/java/org/bgbm/biovel/drf/checklist/BgbmEditClient.java
src/main/java/org/bgbm/biovel/drf/checklist/PESIClient.java
src/main/java/org/bgbm/biovel/drf/checklist/WoRMSClient.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/AtomisedName.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/Classification.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/NameType.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/ObjectFactory.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/Query.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/Response.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/Source.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/Synonym.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/Taxon.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/TaxonBase.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/TaxonName.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/TnrMsg.java
src/main/java/org/bgbm/biovel/drf/tnr/msg/package-info.java
src/main/java/org/bgbm/biovel/drf/utils/TnrMsgUtils.java
src/main/resources/org/bgbm/biovel/drf/tnr/tnrmsg.xsd
src/test/java/org/bgbm/biovel/drf/tnr/msg/GBIFChecklistTest.java

index d0f820a32570dd4ec01270c584cfc9441216c550..739b6b07c3ab2d4a95b32898b86ef350cb8cda09 100644 (file)
@@ -141,6 +141,14 @@ public abstract class BaseChecklistClient extends TaxoRESTClient {
         return query;
     }
 
+    /**
+     *
+     * @param tnrMsg
+     * @param mode
+     * @throws DRFChecklistException
+     *
+     * TODO remove parameter SearchMode, since it in now included in the TnrMsg.query.request
+     */
     public void resolveNames(TnrMsg tnrMsg, SearchMode mode) throws DRFChecklistException {
 
         TnrMsgUtils.updateWithSearchMode(tnrMsg, mode);
index 6881a13e1cfc8f3e4e8196f16290a66534dfa431..b56483206bada9df6bc3c59d3500464549a529b8 100644 (file)
@@ -236,6 +236,11 @@ public class BgbmEditClient extends AggregateChecklistClient {
 
         List<Query> queryList = tnrMsg.getQuery();
 
+        // selecting one request as representative, only
+        // the search mode and addSynonmy flag are important
+        // for the further usage of the request object
+        Query.Request request = queryList.get(0).getRequest();
+
         for (ServiceProviderInfo checklistInfo : getServiceProviderInfo().getSubChecklists()) {
             URI namesUri = buildUriFromQueryList(queryList,
                     "/cdmserver/" + checklistInfo.getId() + "/name_catalogue.json",
@@ -253,7 +258,7 @@ public class BgbmEditClient extends AggregateChecklistClient {
                         "taxonUuid",
                         null);
                 String taxonResponseBody = processRESTService(taxonUri);
-                updateQueriesWithResponse(taxonResponseBody, checklistInfo);
+                updateQueriesWithResponse(taxonResponseBody, checklistInfo, request);
             }
         }
     }
@@ -265,7 +270,7 @@ public class BgbmEditClient extends AggregateChecklistClient {
 
     }
 
-    private void updateQueriesWithResponse(String responseBody, ServiceProviderInfo ci) throws DRFChecklistException {
+    private void updateQueriesWithResponse(String responseBody, ServiceProviderInfo ci, Query.Request request) throws DRFChecklistException {
 
         JSONArray responseBodyJson = parseResponseBody(responseBody);
 
@@ -291,7 +296,11 @@ public class BgbmEditClient extends AggregateChecklistClient {
 
                 Taxon accName = generateAccName(taxon);
                 tnrResponse.setTaxon(accName);
-                generateSynonyms(relatedTaxa, tnrResponse);
+
+                if(request.isAddSynonymy()){
+                    generateSynonyms(relatedTaxa, tnrResponse);
+                }
+
                 Query query = taxonIdQueryMap.get(taxonUuid);
                 if(query != null) {
                     query.getResponse().add(tnrResponse);
index 1b208e7b54fe45093b4caa9b828d20bf651d06f9..7c83ec8207d977c35c03c7ee13db52431b9fff6e 100644 (file)
@@ -263,7 +263,7 @@ public class PESIClient extends BaseChecklistClient {
             if(nameGUID != null){
                 logger.debug("nameGUID : " + nameGUID);
                 PESIRecord record = pesinspt.getPESIRecordByGUID(nameGUID);
-                Response tnrResponse = tnrResponseFromRecord(pesinspt, record, SearchMode.valueOf(query.getRequest().getSearchMode()));
+                Response tnrResponse = tnrResponseFromRecord(pesinspt, record, query.getRequest());
                 query.getResponse().add(tnrResponse);
             } else {
                 logger.debug("no match for " + name);
@@ -287,7 +287,7 @@ public class PESIClient extends BaseChecklistClient {
             PESIRecord[] records = pesinspt.getPESIRecords(name, true);
             if(records != null){
                 for (PESIRecord record : records) {
-                    Response tnrResponse = tnrResponseFromRecord(pesinspt, record, SearchMode.valueOf(query.getRequest().getSearchMode()));
+                    Response tnrResponse = tnrResponseFromRecord(pesinspt, record, query.getRequest());
                     query.getResponse().add(tnrResponse);
                 }
             }
@@ -311,7 +311,7 @@ public class PESIClient extends BaseChecklistClient {
             PESIRecord[] records = pesinspt.getPESIRecordsByVernacular(name);
             if(records != null){
                 for (PESIRecord record : records) {
-                    Response tnrResponse = tnrResponseFromRecord(pesinspt, record, SearchMode.valueOf(query.getRequest().getSearchMode()));
+                    Response tnrResponse = tnrResponseFromRecord(pesinspt, record, query.getRequest());
                     query.getResponse().add(tnrResponse);
                 }
             }
@@ -335,7 +335,7 @@ public class PESIClient extends BaseChecklistClient {
             PESIRecord[] records = pesinspt.getPESIRecordsByVernacular("%" + name + "%");
             if(records != null){
                 for (PESIRecord record : records) {
-                    Response tnrResponse = tnrResponseFromRecord(pesinspt, record, SearchMode.valueOf(query.getRequest().getSearchMode()));
+                    Response tnrResponse = tnrResponseFromRecord(pesinspt, record, query.getRequest());
                     query.getResponse().add(tnrResponse);
                 }
             }
@@ -352,10 +352,12 @@ public class PESIClient extends BaseChecklistClient {
      * @param searchMode TODO
      * @throws RemoteException
      */
-    private Response tnrResponseFromRecord(PESINameServicePortType pesinspt, PESIRecord record, SearchMode searchMode) throws RemoteException {
+    private Response tnrResponseFromRecord(PESINameServicePortType pesinspt, PESIRecord record, Query.Request request) throws RemoteException {
 
         Response tnrResponse = TnrMsgUtils.tnrResponseFor(getServiceProviderInfo());
 
+        SearchMode searchMode = SearchMode.valueOf(request.getSearchMode());
+
         String accNameGUID = record.getValid_guid();
         if(SCIENTIFICNAME_SEARCH_MODES.contains(searchMode)){
             tnrResponse.setMatchingNameString(record.getScientificname());
@@ -381,7 +383,7 @@ public class PESIClient extends BaseChecklistClient {
             }
 
             PESIRecord[] records = pesinspt.getPESISynonymsByGUID(accNameGUID);
-            if(records != null && records.length > 0) {
+            if(request.isAddSynonymy() &&  records != null && records.length > 0) {
                 generateSynonyms(records,tnrResponse);
             }
         }
index ad801aef643ac3d656a40e577d36c7e5fb6b5afd..4d3d306eefbcba027cc39b8f603aca35c4d89de2 100644 (file)
@@ -98,10 +98,13 @@ public class WoRMSClient extends BaseChecklistClient {
      * @return
      * @throws RemoteException
      */
-    private Response tnrResponseFromRecord(AphiaNameServicePortType aphianspt, AphiaRecord record, SearchMode searchMode)
+    private Response tnrResponseFromRecord(AphiaNameServicePortType aphianspt, AphiaRecord record, Query.Request request)
             throws RemoteException {
+
         Response tnrResponse = TnrMsgUtils.tnrResponseFor(getServiceProviderInfo());
 
+        SearchMode searchMode = SearchMode.valueOf(request.getSearchMode());
+
         int accNameGUID = record.getValid_AphiaID();
         String matchingName = record.getScientificname();
         if(SCIENTIFICNAME_SEARCH_MODES.contains(searchMode)){
@@ -127,7 +130,7 @@ public class WoRMSClient extends BaseChecklistClient {
 
         AphiaRecord[] synonyms = aphianspt.getAphiaSynonymsByID(accNameGUID);
 
-        if(synonyms != null && synonyms.length > 0) {
+        if(request.isAddSynonymy() && synonyms != null && synonyms.length > 0) {
             generateSynonyms(synonyms, tnrResponse);
         }
         return tnrResponse;
@@ -229,7 +232,7 @@ public class WoRMSClient extends BaseChecklistClient {
                 Integer nameAphiaID = aphianspt.getAphiaID(name, false);
                 logger.debug("nameAphiaID : " + nameAphiaID);
                 record = aphianspt.getAphiaRecordByID(nameAphiaID);
-                Response tnrResponse = tnrResponseFromRecord(aphianspt, record, SearchMode.scientificNameExact);
+                Response tnrResponse = tnrResponseFromRecord(aphianspt, record, query.getRequest());
                 query.getResponse().add(tnrResponse);
             } catch(NullPointerException npe) {
                 //FIXME : Workaround for NPE thrown by the aphia stub due to a,
@@ -255,7 +258,7 @@ public class WoRMSClient extends BaseChecklistClient {
             AphiaRecord[] records = aphianspt.getAphiaRecords(name + "%", true, fuzzy, false, 1);
             if(records != null){
                 for (AphiaRecord record : records) {
-                    Response tnrResponse = tnrResponseFromRecord(aphianspt, record, SearchMode.scientificNameLike);
+                    Response tnrResponse = tnrResponseFromRecord(aphianspt, record, query.getRequest());
                     query.getResponse().add(tnrResponse);
                 }
             }
@@ -278,7 +281,7 @@ public class WoRMSClient extends BaseChecklistClient {
             AphiaRecord[] records = aphianspt.getAphiaRecordsByVernacular(name, false, 1);
             if(records != null){
                 for (AphiaRecord record : records) {
-                    Response tnrResponse = tnrResponseFromRecord(aphianspt, record, SearchMode.vernacularNameExact);
+                    Response tnrResponse = tnrResponseFromRecord(aphianspt, record, query.getRequest());
                     query.getResponse().add(tnrResponse);
                 }
             }
@@ -301,7 +304,7 @@ public class WoRMSClient extends BaseChecklistClient {
             AphiaRecord[] records = aphianspt.getAphiaRecordsByVernacular(name, true, 1);
             if(records != null){
                 for (AphiaRecord record : records) {
-                    Response tnrResponse = tnrResponseFromRecord(aphianspt, record, SearchMode.vernacularNameLike);
+                    Response tnrResponse = tnrResponseFromRecord(aphianspt, record, query.getRequest());
                     query.getResponse().add(tnrResponse);
                 }
             }
index f675317952a8227777eea3ef1de1f8986e5114e5..3eaa1a594fbe01fdab2fce2e8501dddd8f0aee67 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index 1fc8e281f7fcce6b2fb047defd66fc97e5aace5e..bde0e0da81e7a3c3f801fb439bc6b89c7f29a868 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index 5ccb4285c6cbcc3a23933e3ba2b6c64d997629c0..9b28f7bdaf30c5fe07de918a944dfa371733a317 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index 4b8920e88c09698a90c5a527b225413abebd2222..2b2c81c39f02b413f10292dc800b3ac3246472be 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index e49ed5b7a5f78b2ac03343218ccfd778b1e71fb6..9d3dc9d999e73a3e7af8d5027705d82612332b7d 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
@@ -36,6 +36,7 @@ import com.wordnik.swagger.annotations.ApiModelProperty;
  *                 &lt;sequence&gt;
  *                   &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
  *                   &lt;element name="searchMode" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
+ *                   &lt;element name="addSynonymy" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
  *                 &lt;/sequence&gt;
  *               &lt;/restriction&gt;
  *             &lt;/complexContent&gt;
@@ -229,7 +230,7 @@ public class Query {
          *     {@link BigDecimal }
          *     
          */
-        @ApiModelProperty("Duration of the request in milliseconds")
+        @ApiModelProperty("Duration of the request processing in the specific checklist client in milliseconds.")
         public BigDecimal getDuration() {
             return duration;
         }
@@ -286,6 +287,7 @@ public class Query {
      *       &lt;sequence&gt;
      *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
      *         &lt;element name="searchMode" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
+     *         &lt;element name="addSynonymy" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
      *       &lt;/sequence&gt;
      *     &lt;/restriction&gt;
      *   &lt;/complexContent&gt;
@@ -297,7 +299,8 @@ public class Query {
     @XmlAccessorType(XmlAccessType.FIELD)
     @XmlType(name = "", propOrder = {
         "name",
-        "searchMode"
+        "searchMode",
+        "addSynonymy"
     })
     public static class Request {
 
@@ -305,6 +308,7 @@ public class Query {
         protected String name;
         @XmlElement(required = true)
         protected String searchMode;
+        protected boolean addSynonymy;
 
         /**
          * Gets the value of the name property.
@@ -356,6 +360,23 @@ public class Query {
             this.searchMode = value;
         }
 
+        /**
+         * Gets the value of the addSynonymy property.
+         * 
+         */
+        @ApiModelProperty("Indicates whether the synonymy of the accepted taxon should be included into the response. Turning this option on may lead to an increased response time.")
+        public boolean isAddSynonymy() {
+            return addSynonymy;
+        }
+
+        /**
+         * Sets the value of the addSynonymy property.
+         * 
+         */
+        public void setAddSynonymy(boolean value) {
+            this.addSynonymy = value;
+        }
+
     }
 
 }
index c037ae5b4d99b12771bec841ef97f7508e8cab30..ec2a74edfd6e240312ddf92ee601d63d62546ff6 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index cd44e92015092a9d413c67ebeded420a076d47d3..1fb25d2b63edd4f3dee1731b57a690df59125a2c 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index 78d0aa3d14a7003869507ec6f18a59c444da0045..040518e04f72bc748588dab419a138e0fb91b9a0 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index ac605d2e103c704e23db09cc6f1f66c9bdd52a48..f79affa1941f7ebcf7bfe80d261ffcf3961dd6aa 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index be03fd00be57f81b7fe7bf626f90c7a84f69fafa..f2ecfb4a0b7942863f548c48ab9d9fe8e7ce43ce 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index fa260394f435457c00d304e80dea03ec7b643362..30a8fbc893accf9315fd62cb8ebfff6932795ae0 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index 98f152da972baa1f5eb9fca25a5e7b21f6cb72f4..59afb540be9ce0d1500b1796520c46acb4a97a13 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 
index bdce7686bdb8b4ed9a733a34949f18a2f97df8c9..d313d38e01f7090e81d2f6257ac3336f65468343 100644 (file)
@@ -2,7 +2,7 @@
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 // Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2015.02.02 at 03:37:10 PM CET 
+// Generated on: 2015.02.03 at 02:45:08 PM CET 
 //
 
 @javax.xml.bind.annotation.XmlSchema(namespace = "http://bgbm.org/biovel/drf/tnr/msg", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
index ddb62135480d9f5b9fa425ee9e34890c83f61843..e3fadbbe458d39364813e843dd555f2aec126f29 100644 (file)
@@ -147,24 +147,25 @@ public class TnrMsgUtils {
             return finalTnrMsgList;
         }
 
-        public static TnrMsg convertStringToTnrMsg(String name, SearchMode searchMode) {
+        public static TnrMsg convertStringToTnrMsg(String name, SearchMode searchMode, boolean addSynonymy) {
             TnrMsg tnrMsg = new TnrMsg();
             Query query = new Query();
             Request request = new Request();
 
             request.setName(name);
             request.setSearchMode(searchMode.toString());
+            request.setAddSynonymy(addSynonymy);
             query.setRequest(request);
             tnrMsg.getQuery().add(query);
 
             return tnrMsg;
         }
 
-        public static List<TnrMsg> convertStringListToTnrMsgList(List<String> names, SearchMode searchMode) {
+        public static List<TnrMsg> convertStringListToTnrMsgList(List<String> names, SearchMode searchMode, boolean addSynonymy) {
             List<TnrMsg> tnrMsgList = new ArrayList<TnrMsg>();
             Iterator<String> itrStringMsg = names.iterator();
             while(itrStringMsg.hasNext()) {
-                TnrMsg tnrMsg = convertStringToTnrMsg(itrStringMsg.next(), searchMode);
+                TnrMsg tnrMsg = convertStringToTnrMsg(itrStringMsg.next(), searchMode, addSynonymy);
                 tnrMsgList.add(tnrMsg);
             }
             return tnrMsgList;
index 88f581a0f97ec5bf61dde43e62f950b4c0c99dfa..a303a3081d990b5b178e7c3a1fff1acc39e9bf48 100644 (file)
                   </xsd:appinfo>
                 </xsd:annotation>
               </xsd:element>
+              <xsd:element name="addSynonymy" type="xsd:boolean">
+              <xsd:annotation>
+                  <xsd:appinfo>
+                    <annox:annotate target="getter">
+                      @com.wordnik.swagger.annotations.ApiModelProperty("Indicates whether the synonymy of the accepted taxon should be included into the response. Turning this option on may lead to an increased response time.")
+                    </annox:annotate>
+                  </xsd:appinfo>
+                </xsd:annotation>
+              </xsd:element>
             </xsd:sequence>
           </xsd:complexType>
         </xsd:element>
index 9aa881c84bb0927b7930829b67c7559ddfea8696..e8df75f4a290f2e3950e55ef938fbac4aee031dd 100644 (file)
@@ -88,7 +88,7 @@ public class GBIFChecklistTest {
     @Test
     public void nameCompleteStringListTest() throws DRFChecklistException, DRFInputException, JAXBException, TnrMsgException {
         parser = new DRFCSVInputParser();
-        List<TnrMsg> tnrMsgs = TnrMsgUtils.convertStringListToTnrMsgList(nameCompleteList, SearchMode.scientificNameExact);
+        List<TnrMsg> tnrMsgs = TnrMsgUtils.convertStringListToTnrMsgList(nameCompleteList, SearchMode.scientificNameExact, false);
         //List<TnrMsg> tnrMsgs = parser.parse(BiovelUtils.getResourceAsString("/org/bgbm/biovel/drf/tnr/singleNameCompleteOnly.csv","UTF-8"));
         List<String> chosenKeyList = new ArrayList<String>();
         chosenKeyList.add("7ddf754f-d193-4cc9-b351-99906754a03b");