public class TaxaBlock extends NexusBlock.Abstract
NexusBlock.Abstract| Modifier and Type | Field and Description | 
|---|---|
static String | 
TAXA_BLOCK
A constant representing the name of Taxa blocks. 
 | 
| Constructor and Description | 
|---|
TaxaBlock()
Delegates to NexusBlock.Abstract constructor using TaxaBlock.TAXA_BLOCK
 as the name. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addComment(NexusComment comment)
Adds a comment. 
 | 
void | 
addTaxLabel(String taxLabel)
Add a TAXLABEL. 
 | 
boolean | 
containsTaxLabel(String taxLabel)
Checks to see if we contain the given TAXLABEL. 
 | 
List | 
getComments()
Returns all comments. 
 | 
int | 
getDimensionsNTax()
Get the NTAX value. 
 | 
List | 
getTaxLabels()
Get the TAXLABEL values added so far. 
 | 
void | 
removeComment(NexusComment comment)
Removes a comment. 
 | 
void | 
removeTaxLabel(String taxLabel)
Removes the given TAXLABEL. 
 | 
void | 
setDimensionsNTax(int dimensionsNTax)
Set the NTAX value. 
 | 
protected void | 
writeBlockContents(Writer writer)
Implement this to write out block contents, not including the BEGIN
 and END tags. 
 | 
getBlockName, writeObject, writeTokenpublic static final String TAXA_BLOCK
public TaxaBlock()
public void setDimensionsNTax(int dimensionsNTax)
dimensionsNTax - the NTAX value.public int getDimensionsNTax()
public void addTaxLabel(String taxLabel) throws ParseException
taxLabel - the label to add.ParseException - if the label cannot be added.public void removeTaxLabel(String taxLabel)
taxLabel - the label to remove.public boolean containsTaxLabel(String taxLabel)
taxLabel - the label to check for.public List getTaxLabels()
public void addComment(NexusComment comment)
comment - the comment to add.public void removeComment(NexusComment comment)
comment - the comment to remove.public List getComments()
protected void writeBlockContents(Writer writer) throws IOException
NexusBlock.AbstractwriteBlockContents in class NexusBlock.Abstractwriter - the writer to write to.IOException - if writing failed.Copyright © 2020 BioJava. All rights reserved.