public class TaxaBlockBuilder extends NexusBlockBuilder.Abstract implements TaxaBlockListener
NexusBlockBuilder.Abstract
Constructor and Description |
---|
TaxaBlockBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
addComment(NexusComment comment)
Tell the builder to add the given comment at the current location.
|
void |
addTaxLabel(String taxLabel)
Add another value after the TAXLABEL tag.
|
void |
endBlock()
Notifies the parser that a block is ending.
|
void |
endTokenGroup()
Closing a line (semi-colon encountered).
|
void |
setDimensionsNTax(int dimensionsNTax)
Set the DIMENSIONS NTAX value.
|
protected NexusBlock |
startBlockObject()
Tell the builder to start a new block object.
|
beginComment, commentText, endComment, getBlockName, getNexusBlock, startBlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginComment, commentText, endComment, startBlock
public TaxaBlockBuilder()
public void addTaxLabel(String taxLabel) throws ParseException
TaxaBlockListener
addTaxLabel
in interface TaxaBlockListener
taxLabel
- the new taxa to add.ParseException
- if the label is invalid.public void setDimensionsNTax(int dimensionsNTax)
TaxaBlockListener
setDimensionsNTax
in interface TaxaBlockListener
dimensionsNTax
- the new value.protected void addComment(NexusComment comment)
NexusBlockBuilder.Abstract
addComment
in class NexusBlockBuilder.Abstract
comment
- the comment to add.protected NexusBlock startBlockObject()
NexusBlockBuilder.Abstract
startBlockObject
in class NexusBlockBuilder.Abstract
public void endBlock()
NexusBlockListener
endBlock
in interface NexusBlockListener
public void endTokenGroup()
NexusBlockListener
endTokenGroup
in interface NexusBlockListener
Copyright © 2014 BioJava. All rights reserved.