JAL_1426 JAL-3066 update Apache James mime parser and fix deprecation warnings with...
[jalview.git] / src / jalview / ws / api / UIinfo.java
index 2cffa84..8ef4d5b 100644 (file)
@@ -128,4 +128,37 @@ public class UIinfo
     // TODO Auto-generated method stub
     return null;
   }
+
+  /**
+   * 
+   * @return true if the service has parameters (ie is instance of
+   *         jalview.ws.api.ServiceWithParameters)
+   */
+  public boolean hasParameters()
+  {
+    // TODO Auto-generated method stub
+    return false;
+  }
+
+  private String docUrl = null;
+
+  /**
+   * set the URL that will be offered to show documentation for the service
+   * 
+   * @param url
+   */
+  public void setDocumentationUrl(String url)
+  {
+    docUrl = url;
+  }
+
+  public boolean hasDocumentationUrl()
+  {
+    return docUrl != null && docUrl.length() > 7;
+  }
+
+  public String getDocumentationUrl()
+  {
+    return docUrl;
+  }
 }
\ No newline at end of file