I second that approach -----Original Message----- From: Mark Schreiber [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21, 2001 2:36 PM To: Thomas Down Cc: David Waring; [EMAIL PROTECTED] Subject: Re: [Biojava-l] IntegerAlphabet IntegerSymbol
On Sun, 21 Oct 2001, Thomas Down wrote: > > Three options: > > 1) Create a new SequenceFormat just for this, and if there will be no other > > use of IntegerSymbolList perhaps this is the best way to go. > > > > 2) Create an IntegerSymbolList that extends SimpleSymbolList overriding > > seqString(). > > > > 3) (most invasive but perhaps cleanest) Change getToken() to return an > > String, or adding toString() to Symbol and add a method paddedSeqString() to > > AbstractSymbolList. > > 4) get rid of getToken() completely, and change the way that sequences > get converted to strings -- replacing hardwired code in SymbolList > implementations with pluggable `stringifiers'. > > This was the idea of my SymbolTokenizations patch which I posted > a few days ago. Certainly my view is that is provides a much > cleaner framework for handling this kind of situtation, and I'd > urge you to take a look. > > Thomas I like option 4 although I would advocate deprecating getToken() instead until everyone gets their applications up to speed with SymbolTokenizations. Mark ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark Schreiber Ph: 64 3 4797875 Rm 218 email [EMAIL PROTECTED] Department of Biochemistry email [EMAIL PROTECTED] University of Otago PO Box 56 Dunedin New Zealand ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ Biojava-l mailing list - [EMAIL PROTECTED] http://biojava.org/mailman/listinfo/biojava-l _______________________________________________ Biojava-l mailing list - [EMAIL PROTECTED] http://biojava.org/mailman/listinfo/biojava-l