001/*
002
003 *                    BioJava development code
004
005 *
006
007 * This code may be freely distributed and modified under the
008
009 * terms of the GNU Lesser General Public Licence.  This should
010
011 * be distributed with the code.  If you do not have a copy,
012
013 * see:
014
015 *
016
017 *      http://www.gnu.org/copyleft/lesser.html
018
019 *
020
021 * Copyright for this code is held jointly by the individual
022
023 * authors.  These should be listed in @author doc comments.
024
025 *
026
027 * For more information on the BioJava project and its aims,
028
029 * or to join the biojava-l mailing list, visit the home page
030
031 * at:
032
033 *
034
035 *      http://www.biojava.org/
036
037 *
038
039 */
040
041 package org.biojava.bio.seq.io.agave;
042
043
044
045 /**
046
047  * @author Hanning Ni    Doubletwist Inc
048   * @author Greg Cox
049
050  */
051
052public class AGAVEIdAlias {
053
054  private String id, type ;
055
056
057
058  AGAVEIdAlias(String id, String type) {
059
060      this.id = id ;
061
062      this.type = type;
063
064  }
065
066  public String getID(){
067
068      return id ;
069
070  }
071
072  public String getType(){
073
074      return type ;
075
076  }
077
078  public String toString(String indent, String indent_unit)
079
080  {
081
082     StringBuffer sb = new StringBuffer();
083
084     sb.append(indent + "<id_alias id=\"" + id + "\"");
085
086     if(  type != null )
087
088        sb.append(" type=\"" + type + "\"");
089
090     sb.append("/>");
091
092     return sb.substring(0);
093
094  }
095
096  public String toString()
097
098  {
099
100     StringBuffer sb = new StringBuffer();
101
102     sb.append("<id_alias id=\"" + id + "\"");
103
104     if(  type != null )
105
106        sb.append(" type=\"" + type + "\"");
107
108     sb.append("/>");
109
110     return sb.substring(0);
111
112  }
113
114
115
116}