public class DefaultNewickReaderNodeLabelProcessor extends java.lang.Object implements NewickReaderNodeLabelProcessor
NewickReaderNodeLabelProcessor
that returns the original name unchanged.Constructor and Description |
---|
DefaultNewickReaderNodeLabelProcessor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLinkedOTUID(java.lang.String processedLabel)
Returns the OTU ID that is associated with the specified label.
|
java.lang.String |
processLabel(java.lang.String originalLabel,
boolean isInternal)
Processes a label according to the format modeled by this implementation.
|
public DefaultNewickReaderNodeLabelProcessor()
public java.lang.String processLabel(java.lang.String originalLabel, boolean isInternal)
NewickReaderNodeLabelProcessor
processLabel
in interface NewickReaderNodeLabelProcessor
originalLabel
- the label as it was read from the Newick stringisInternal
- defines whether the node carrying this label is an internal node or notpublic java.lang.String getLinkedOTUID(java.lang.String processedLabel)
NewickReaderNodeLabelProcessor
getLinkedOTUID
in interface NewickReaderNodeLabelProcessor
processedLabel
- the processed label as it was returned by a call if #processLabel(String)
null
if no associated OTU ID exists