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, startBlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginComment, commentText, endComment, startBlockpublic CharactersBlockBuilder()
protected void addComment(NexusComment comment)
NexusBlockBuilder.AbstractaddComment in class NexusBlockBuilder.Abstractcomment - the comment to add.protected CharactersBlock makeNewBlock()
protected NexusBlock startBlockObject()
NexusBlockBuilder.AbstractstartBlockObject in class NexusBlockBuilder.Abstractprotected void resetStatus()
public void endBlock()
NexusBlockListenerendBlock in interface NexusBlockListenerpublic void endTokenGroup()
NexusBlockListenerendTokenGroup in interface NexusBlockListenerpublic void addCharLabel(String charLabel)
addCharLabel in interface CharactersBlockListenerpublic void addCharState(String charState)
addCharState in interface CharactersBlockListenerpublic void addCharStateKeyword(String charState, String keyword)
addCharStateKeyword in interface CharactersBlockListenerpublic void addEquate(String symbol, List symbols)
addEquate in interface CharactersBlockListenerpublic void addItem(String item)
addItem in interface CharactersBlockListenerpublic void addMatrixEntry(String taxa)
addMatrixEntry in interface CharactersBlockListenerpublic void addState(String state)
addState in interface CharactersBlockListenerpublic void addStateLabel(String state, String label)
addStateLabel in interface CharactersBlockListenerpublic void addSymbol(String symbol)
addSymbol in interface CharactersBlockListenerpublic void addTaxLabel(String taxLabel) throws ParseException
CharactersBlockListeneraddTaxLabel in interface CharactersBlockListenertaxLabel - the label to add.ParseException - if the label cannot be added.public void appendMatrixData(String taxa, Object data)
appendMatrixData in interface CharactersBlockListenerpublic void setCharStateLabel(String charState, String label)
setCharStateLabel in interface CharactersBlockListenerpublic void setDataType(String dataType)
setDataType in interface CharactersBlockListenerpublic void setDimensionsNChar(int dimensionsNChar)
CharactersBlockListenersetDimensionsNChar in interface CharactersBlockListenerdimensionsNChar - the NCHAR value.public void setDimensionsNTax(int dimensionsNTax)
CharactersBlockListenersetDimensionsNTax in interface CharactersBlockListenerdimensionsNTax - the NTAX value.public void setEliminateEnd(int eliminateEnd)
setEliminateEnd in interface CharactersBlockListenerpublic void setEliminateStart(int eliminateStart)
setEliminateStart in interface CharactersBlockListenerpublic void setGap(String gap)
setGap in interface CharactersBlockListenerpublic void setInterleaved(boolean interleaved)
setInterleaved in interface CharactersBlockListenerpublic void setLabels(boolean labels)
setLabels in interface CharactersBlockListenerpublic void setMatchChar(String matchChar)
setMatchChar in interface CharactersBlockListenerpublic void setMissing(String missing)
setMissing in interface CharactersBlockListenerpublic void setRespectCase(boolean respectCase)
setRespectCase in interface CharactersBlockListenerpublic void setStatesFormat(String statesFormat)
setStatesFormat in interface CharactersBlockListenerpublic void setTokens(boolean tokens)
setTokens in interface CharactersBlockListenerpublic void setTransposed(boolean transposed)
setTransposed in interface CharactersBlockListenerCopyright © 2014 BioJava. All rights reserved.