JAL-2051 better checking of retrieved / duplicated accession ids
[jalview.git] / src / jalview / ext / ensembl / EnsemblRestClient.java
index 441ec7c..6a564f1 100644 (file)
@@ -85,11 +85,25 @@ abstract class EnsemblRestClient extends EnsemblSequenceFetcher
     domain = d;
   }
 
+  /**
+   * Answers true if the query matches the regular expression pattern for an
+   * Ensembl transcript stable identifier
+   * 
+   * @param query
+   * @return
+   */
   public boolean isTranscriptIdentifier(String query)
   {
     return query == null ? false : TRANSCRIPT_REGEX.search(query);
   }
 
+  /**
+   * Answers true if the query matches the regular expression pattern for an
+   * Ensembl gene stable identifier
+   * 
+   * @param query
+   * @return
+   */
   public boolean isGeneIdentifier(String query)
   {
     return query == null ? false : GENE_REGEX.search(query);