|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojavax.bio.phylo.io.nexus.NexusBlockBuilder.Abstract
org.biojavax.bio.phylo.io.nexus.TaxaBlockBuilder
public class TaxaBlockBuilder
Builds Nexus taxa blocks.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder |
|---|
NexusBlockBuilder.Abstract |
| Constructor Summary | |
|---|---|
TaxaBlockBuilder()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder.Abstract |
|---|
beginComment, commentText, endComment, getBlockName, getNexusBlock, startBlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockListener |
|---|
beginComment, commentText, endComment, startBlock |
| Constructor Detail |
|---|
public TaxaBlockBuilder()
| Method Detail |
|---|
public void addTaxLabel(String taxLabel)
throws ParseException
TaxaBlockListener
addTaxLabel in interface TaxaBlockListenertaxLabel - the new taxa to add.
ParseException - if the label is invalid.public void setDimensionsNTax(int dimensionsNTax)
TaxaBlockListener
setDimensionsNTax in interface TaxaBlockListenerdimensionsNTax - the new value.protected void addComment(NexusComment comment)
NexusBlockBuilder.Abstract
addComment in class NexusBlockBuilder.Abstractcomment - the comment to add.protected NexusBlock startBlockObject()
NexusBlockBuilder.Abstract
startBlockObject in class NexusBlockBuilder.Abstractpublic void endBlock()
NexusBlockListener
endBlock in interface NexusBlockListenerpublic void endTokenGroup()
NexusBlockListener
endTokenGroup in interface NexusBlockListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||