public class TreeTaxonomyPrinter<T> extends Object implements TaxonomyPrinter<T>
| Modifier and Type | Field and Description |
|---|---|
protected PrintWriter |
out |
protected Taxonomy<T> |
taxonomy |
| Constructor and Description |
|---|
TreeTaxonomyPrinter() |
| Modifier and Type | Method and Description |
|---|---|
void |
print(Taxonomy<T> taxonomy) |
void |
print(Taxonomy<T> taxonomy,
PrintWriter out) |
protected void |
printNode(Set<T> set)
Print the node contents in one line
|
protected void |
printNode(Set<T> set,
String indent)
Print the node contents with indentation and newline
|
protected void |
printTree()
Print the taxonomy as an indented tree
|
protected void |
printTree(Set<T> set,
String indent)
Print the tree rooted at the given node
|
protected void |
printURI(PrintWriter out,
T e) |
protected PrintWriter out
public void print(Taxonomy<T> taxonomy)
print in interface TaxonomyPrinter<T>public void print(Taxonomy<T> taxonomy, PrintWriter out)
print in interface TaxonomyPrinter<T>protected void printTree()
protected void printTree(Set<T> set, String indent)
node - indent - protected void printNode(Set<T> set, String indent)
set - indent - protected void printNode(Set<T> set)
set - protected void printURI(PrintWriter out, T e)
Copyright © 2019. All rights reserved.