|
||||||||||
| 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.CharactersBlockBuilder
public class CharactersBlockBuilder
Builds Nexus characters blocks.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder |
|---|
NexusBlockBuilder.Abstract |
| Constructor Summary | |
|---|---|
CharactersBlockBuilder()
|
|
| Method Summary | |
|---|---|
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. |
| 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 CharactersBlockBuilder()
| Method Detail |
|---|
protected void addComment(NexusComment comment)
NexusBlockBuilder.Abstract
addComment in class NexusBlockBuilder.Abstractcomment - the comment to add.protected CharactersBlock makeNewBlock()
protected NexusBlock startBlockObject()
NexusBlockBuilder.Abstract
startBlockObject in class NexusBlockBuilder.Abstractprotected void resetStatus()
public void endBlock()
NexusBlockListener
endBlock in interface NexusBlockListenerpublic void endTokenGroup()
NexusBlockListener
endTokenGroup in interface NexusBlockListenerpublic void addCharLabel(String charLabel)
addCharLabel in interface CharactersBlockListenerpublic 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 CharactersBlockListenerpublic void addItem(String item)
addItem in interface CharactersBlockListenerpublic void addMatrixEntry(String taxa)
addMatrixEntry in interface CharactersBlockListenerpublic void addState(String state)
addState in interface CharactersBlockListener
public void addStateLabel(String state,
String label)
addStateLabel in interface CharactersBlockListenerpublic void addSymbol(String symbol)
addSymbol in interface CharactersBlockListener
public void addTaxLabel(String taxLabel)
throws ParseException
CharactersBlockListener
addTaxLabel in interface CharactersBlockListenertaxLabel - 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 CharactersBlockListenerpublic void setDataType(String dataType)
setDataType in interface CharactersBlockListenerpublic void setDimensionsNChar(int dimensionsNChar)
CharactersBlockListener
setDimensionsNChar in interface CharactersBlockListenerdimensionsNChar - the NCHAR value.public void setDimensionsNTax(int dimensionsNTax)
CharactersBlockListener
setDimensionsNTax 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 CharactersBlockListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||