big refactoring (moving of methods)
[jalview.git] / forester / java / src / org / forester / archaeopteryx / webservices / BasicPhylogeniesWebserviceClient.java
1 // $Id:
2 // Exp $
3 // forester -- software libraries and applications
4 // for evolutionary biology research and applications.
5 //
6 // Copyright (C) 2008-2010 Christian M. Zmasek
7 // Copyright (C) 2008-2010 Burnham Institute for Medical Research
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU Lesser General Public
11 // License as published by the Free Software Foundation; either
12 // version 2.1 of the License, or (at your option) any later version.
13 //
14 // This library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 // Lesser General Public License for more details.
18 //
19 // You should have received a copy of the GNU Lesser General Public
20 // License along with this library; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 //
23 // Contact: phylosoft @ gmail . com
24 // WWW: www.phylosoft.org
25
26 package org.forester.archaeopteryx.webservices;
27
28 import org.forester.archaeopteryx.webservices.WebservicesManager.WsPhylogenyFormat;
29 import org.forester.phylogeny.PhylogenyMethods;
30
31 public class BasicPhylogeniesWebserviceClient implements PhylogeniesWebserviceClient {
32
33     private final String                              _desc;
34     private final String                              _instructions;
35     private final String                              _menu_name;
36     private final String                              _name;
37     private final WsPhylogenyFormat                   _format;
38     private final String                              _url;
39     private final boolean                             _integer;
40     private final PhylogenyMethods.PhylogenyNodeField _node_field;
41     private final Object                              _proc_inst;
42     private final String                              _ref;
43
44     public BasicPhylogeniesWebserviceClient( final String name,
45                                              final String menu_name,
46                                              final String desc,
47                                              final String instructions,
48                                              final WsPhylogenyFormat format,
49                                              final PhylogenyMethods.PhylogenyNodeField node_field,
50                                              final String url,
51                                              final boolean integer,
52                                              final String ref,
53                                              final Object proc_inst ) {
54         super();
55         _desc = desc;
56         _instructions = instructions;
57         _menu_name = menu_name;
58         _name = name;
59         _format = format;
60         _node_field = node_field;
61         _url = url;
62         _integer = integer;
63         _ref = ref;
64         _proc_inst = proc_inst;
65     }
66
67     @Override
68     public String getDescription() {
69         return _desc;
70     }
71
72     @Override
73     public String getInstructions() {
74         return _instructions;
75     }
76
77     @Override
78     public String getMenuName() {
79         return _menu_name;
80     }
81
82     @Override
83     public String getName() {
84         return _name;
85     }
86
87     @Override
88     public PhylogenyMethods.PhylogenyNodeField getNodeField() {
89         return _node_field;
90     }
91
92     @Override
93     public Object getProcessingInstructions() {
94         return _proc_inst;
95     }
96
97     @Override
98     public String getReference() {
99         return _ref;
100     }
101
102     @Override
103     public WsPhylogenyFormat getReturnFormat() {
104         return _format;
105     }
106
107     @Override
108     public String getUrl() {
109         return _url;
110     }
111
112     @Override
113     public boolean isQueryInteger() {
114         return _integer;
115     }
116 }