merge from 2_4_Release branch
[jalview.git] / src / org / biojava / dasobert / das2 / Das2Capability.java
1 /*
2  *                  BioJava development code
3  *
4  * This code may be freely distributed and modified under the
5  * terms of the GNU Lesser General Public Licence.  This should
6  * be distributed with the code.  If you do not have a copy,
7  * see:
8  *
9  *      http://www.gnu.org/copyleft/lesser.html
10  *
11  * Copyright for this code is held jointly by the individual
12  * authors.  These should be listed in @author doc comments.
13  *
14  * For more information on the BioJava project and its aims,
15  * or to join the biojava-l mailing list, visit the home page
16  * at:
17  *
18  *      http://www.biojava.org/
19  *
20  * Created on Feb 9, 2006
21  *
22  */
23 package org.biojava.dasobert.das2;
24
25 public interface Das2Capability
26 {
27
28   public boolean equals(Das2Capability other);
29
30   public int hashCode();
31
32   public void setCapability(String type);
33
34   public String getCapability();
35
36   public void setQueryUri(String id);
37
38   public String getQueryUri();
39
40   public void setFormats(String[] formats);
41
42   public String[] getFormats();
43
44   /**
45    * checks if this capability is actually of das1 style
46    * 
47    * @return boolean true if the capability is in DAS1 style
48    */
49   public boolean isDas1Style();
50
51 }