Package org.biojavax.bio.phylo.io.nexus
Class TaxaBlockBuilder
java.lang.Object
org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder.Abstract
org.biojavax.bio.phylo.io.nexus.TaxaBlockBuilder
- All Implemented Interfaces:
NexusBlockBuilder,NexusBlockListener,TaxaBlockListener
Builds Nexus taxa blocks.
- Since:
- 1.6
- Author:
- Richard Holland, Tobias Thierer, Jim Balhoff
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder
NexusBlockBuilder.Abstract -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddComment(NexusComment comment) Tell the builder to add the given comment at the current location.voidaddTaxLabel(String taxLabel) Add another value after the TAXLABEL tag.voidendBlock()Notifies the parser that a block is ending.voidClosing a line (semi-colon encountered).voidsetDimensionsNTax(int dimensionsNTax) Set the DIMENSIONS NTAX value.protected NexusBlockTell the builder to start a new block object.Methods inherited from class org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder.Abstract
beginComment, commentText, endComment, getBlockName, getNexusBlock, startBlockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockListener
beginComment, commentText, endComment, startBlock
-
Constructor Details
-
TaxaBlockBuilder
public TaxaBlockBuilder()
-
-
Method Details
-
addTaxLabel
Description copied from interface:TaxaBlockListenerAdd another value after the TAXLABEL tag.- Specified by:
addTaxLabelin interfaceTaxaBlockListener- Parameters:
taxLabel- the new taxa to add.- Throws:
ParseException- if the label is invalid.
-
setDimensionsNTax
Description copied from interface:TaxaBlockListenerSet the DIMENSIONS NTAX value.- Specified by:
setDimensionsNTaxin interfaceTaxaBlockListener- Parameters:
dimensionsNTax- the new value.
-
addComment
Description copied from class:NexusBlockBuilder.AbstractTell the builder to add the given comment at the current location.- Specified by:
addCommentin classNexusBlockBuilder.Abstract- Parameters:
comment- the comment to add.
-
startBlockObject
Description copied from class:NexusBlockBuilder.AbstractTell the builder to start a new block object.- Specified by:
startBlockObjectin classNexusBlockBuilder.Abstract
-
endBlock
Description copied from interface:NexusBlockListenerNotifies the parser that a block is ending.- Specified by:
endBlockin interfaceNexusBlockListener
-
endTokenGroup
Description copied from interface:NexusBlockListenerClosing a line (semi-colon encountered). This indicates that anything received after it is on the next logical line of the block.- Specified by:
endTokenGroupin interfaceNexusBlockListener
-