001package com.hfg.bio.seq.format.feature.uniprot; 002 003 004import com.hfg.bio.seq.format.feature.SeqFeatureImpl; 005 006public class UniProtFeature extends SeqFeatureImpl 007{ 008 private String mDescription; 009 010 //--------------------------------------------------------------------------- 011 public UniProtFeature(UniProtFeatureKey inName, UniProtFeatureLocation inLocation) 012 { 013 super(inName, inLocation); 014 } 015 016 //--------------------------------------------------------------------------- 017 @Override 018 public UniProtFeatureKey name() 019 { 020 return (UniProtFeatureKey) super.name(); 021 } 022 023 024 //--------------------------------------------------------------------------- 025 @Override 026 public String toString() 027 { 028 return name().toString(); 029 } 030 031 //--------------------------------------------------------------------------- 032 public UniProtFeature setDescription(String inValue) 033 { 034 mDescription = inValue; 035 return this; 036 } 037 038 //--------------------------------------------------------------------------- 039 public UniProtFeature appendDescription(String inValue) 040 { 041 mDescription = (mDescription != null ? mDescription + ' ' : "") + inValue; 042 return this; 043 } 044 045 //--------------------------------------------------------------------------- 046 public String getDescription() 047 { 048 return mDescription; 049 } 050 051}