public class CharactersBlockBuilder extends NexusBlockBuilder.Abstract implements CharactersBlockListener
NexusBlockBuilder.Abstract
Constructor and Description |
---|
CharactersBlockBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addCharLabel(String charLabel) |
void |
addCharState(String charState) |
void |
addCharStateKeyword(String charState,
String keyword) |
protected void |
addComment(NexusComment comment)
Tell the builder to add the given comment at the current location.
|
void |
addEquate(String symbol,
List symbols) |
void |
addItem(String item) |
void |
addMatrixEntry(String taxa) |
void |
addState(String state) |
void |
addStateLabel(String state,
String label) |
void |
addSymbol(String symbol) |
void |
addTaxLabel(String taxLabel)
Add a TAXLABEL.
|
void |
appendMatrixData(String taxa,
Object data) |
void |
endBlock()
Notifies the parser that a block is ending.
|
void |
endTokenGroup()
Closing a line (semi-colon encountered).
|
protected CharactersBlock |
makeNewBlock() |
protected void |
resetStatus()
Allowed to be called by DATA subclass.
|
void |
setCharStateLabel(String charState,
String label) |
void |
setDataType(String dataType) |
void |
setDimensionsNChar(int dimensionsNChar)
Set the NCHAR value.
|
void |
setDimensionsNTax(int dimensionsNTax)
Set the NTAX value.
|
void |
setEliminateEnd(int eliminateEnd) |
void |
setEliminateStart(int eliminateStart) |
void |
setGap(String gap) |
void |
setInterleaved(boolean interleaved) |
void |
setLabels(boolean labels) |
void |
setMatchChar(String matchChar) |
void |
setMissing(String missing) |
void |
setRespectCase(boolean respectCase) |
void |
setStatesFormat(String statesFormat) |
void |
setTokens(boolean tokens) |
void |
setTransposed(boolean transposed) |
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 CharactersBlockBuilder()
protected void addComment(NexusComment comment)
NexusBlockBuilder.Abstract
addComment
in class NexusBlockBuilder.Abstract
comment
- the comment to add.protected CharactersBlock makeNewBlock()
protected NexusBlock startBlockObject()
NexusBlockBuilder.Abstract
startBlockObject
in class NexusBlockBuilder.Abstract
protected void resetStatus()
public void endBlock()
NexusBlockListener
endBlock
in interface NexusBlockListener
public void endTokenGroup()
NexusBlockListener
endTokenGroup
in interface NexusBlockListener
public void addCharLabel(String charLabel)
addCharLabel
in interface CharactersBlockListener
public void addCharState(String charState)
addCharState
in interface CharactersBlockListener
public void addCharStateKeyword(String charState, String keyword)
addCharStateKeyword
in interface CharactersBlockListener
public void addEquate(String symbol, List symbols)
addEquate
in interface CharactersBlockListener
public void addItem(String item)
addItem
in interface CharactersBlockListener
public void addMatrixEntry(String taxa)
addMatrixEntry
in interface CharactersBlockListener
public void addState(String state)
addState
in interface CharactersBlockListener
public void addStateLabel(String state, String label)
addStateLabel
in interface CharactersBlockListener
public void addSymbol(String symbol)
addSymbol
in interface CharactersBlockListener
public void addTaxLabel(String taxLabel) throws ParseException
CharactersBlockListener
addTaxLabel
in interface CharactersBlockListener
taxLabel
- the label to add.ParseException
- if the label cannot be added.public void appendMatrixData(String taxa, Object data)
appendMatrixData
in interface CharactersBlockListener
public void setCharStateLabel(String charState, String label)
setCharStateLabel
in interface CharactersBlockListener
public void setDataType(String dataType)
setDataType
in interface CharactersBlockListener
public void setDimensionsNChar(int dimensionsNChar)
CharactersBlockListener
setDimensionsNChar
in interface CharactersBlockListener
dimensionsNChar
- the NCHAR value.public void setDimensionsNTax(int dimensionsNTax)
CharactersBlockListener
setDimensionsNTax
in interface CharactersBlockListener
dimensionsNTax
- the NTAX value.public void setEliminateEnd(int eliminateEnd)
setEliminateEnd
in interface CharactersBlockListener
public void setEliminateStart(int eliminateStart)
setEliminateStart
in interface CharactersBlockListener
public void setGap(String gap)
setGap
in interface CharactersBlockListener
public void setInterleaved(boolean interleaved)
setInterleaved
in interface CharactersBlockListener
public void setLabels(boolean labels)
setLabels
in interface CharactersBlockListener
public void setMatchChar(String matchChar)
setMatchChar
in interface CharactersBlockListener
public void setMissing(String missing)
setMissing
in interface CharactersBlockListener
public void setRespectCase(boolean respectCase)
setRespectCase
in interface CharactersBlockListener
public void setStatesFormat(String statesFormat)
setStatesFormat
in interface CharactersBlockListener
public void setTokens(boolean tokens)
setTokens
in interface CharactersBlockListener
public void setTransposed(boolean transposed)
setTransposed
in interface CharactersBlockListener
Copyright © 2014 BioJava. All rights reserved.