001/* 002 * BioJava development code 003 * 004 * This code may be freely distributed and modified under the 005 * terms of the GNU Lesser General Public Licence. This should 006 * be distributed with the code. If you do not have a copy, 007 * see: 008 * 009 * http://www.gnu.org/copyleft/lesser.html 010 * 011 * Copyright for this code is held jointly by the individual 012 * authors. These should be listed in @author doc comments. 013 * 014 * For more information on the BioJava project and its aims, 015 * or to join the biojava-l mailing list, visit the home page 016 * at: 017 * 018 * http://www.biojava.org/ 019 * 020 */ 021/** 022 * 023 */ 024package org.biojava.nbio.core.sequence.features; 025 026/** 027 * @author mckeee1 028 * 029 */ 030public class Qualifier { 031 String value; 032 String name; 033 034 boolean needsQuotes; 035 036 /** 037 * 038 */ 039 public Qualifier(String name, String value) { 040 // TODO Auto-generated constructor stub 041 this.name=name; 042 this.value=value; 043 needsQuotes = false; 044 } 045 046 /** 047 * 048 */ 049 public Qualifier(String name, String value, boolean needsQuotes) { 050 // TODO Auto-generated constructor stub 051 this.name=name; 052 this.value=value; 053 this.needsQuotes = needsQuotes; 054 } 055 056 /** 057 * @return the name 058 */ 059 public String getName() { 060 return name; 061 } 062 063 /** 064 * @return the value 065 */ 066 public String getValue() { 067 return value; 068 } 069 070 /** 071 * @return the needsQuotes 072 */ 073 public boolean needsQuotes() { 074 return needsQuotes; 075 } 076 /** 077 * @param name the name to set 078 */ 079 public void setName(String name) { 080 this.name = name; 081 } 082 /** 083 * @param needsQuotes the needsQuotes to set 084 */ 085 public void setNeedsQuotes(boolean needsQuotes) { 086 this.needsQuotes = needsQuotes; 087 } 088 089 /** 090 * @param value the value to set 091 */ 092 public void setValue(String value) { 093 this.value = value; 094 } 095 096 @Override 097 public String toString() { 098 return "Qualifier[ name='" + name +"' value='"+ value + "' ]"; 099 } 100}