Add Jabaws version string available in Services
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Mon, 30 Sep 2013 13:27:18 +0000 (14:27 +0100)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Mon, 30 Sep 2013 13:27:18 +0000 (14:27 +0100)
webservices/compbio/ws/client/Services.java

index 87ef1d2..cf978f8 100644 (file)
@@ -60,6 +60,9 @@ public enum Services {
                return Service.create(url, qname);\r
        }\r
 \r
+       public String getJabawsVersion() {\r
+               return JABAService.JABAWS_VERSION;\r
+       }\r
        public static String toString(Set<Services> services) {\r
                if (services == null || services.isEmpty()) {\r
                        return "No known services...\n";\r
@@ -375,7 +378,6 @@ public enum Services {
                String reference;\r
                String version;\r
                String moreinfo;\r
-               final static String jabaws_version = "2.1";\r
                final static String line_delimiter = "\n";\r
 \r
                private ServiceInfo() {\r
@@ -392,7 +394,7 @@ public enum Services {
                @Override\r
                public String toString() {\r
                        String value = "SERVICE: " + service + " version " + version + line_delimiter + "\n";\r
-                       value += "JABAWS v. " + jabaws_version + line_delimiter;\r
+                       value += "JABAWS v. " + JABAService.JABAWS_VERSION + line_delimiter;\r
                        value += "REFERENCE: " + reference + line_delimiter + "\n";\r
                        value += "MORE INFORMATION: " + moreinfo + line_delimiter;\r
                        return value;\r