Package hu.webarticum.treeprinter
Class PlaceholderNode
- java.lang.Object
-
- hu.webarticum.treeprinter.PlaceholderNode
-
-
Constructor Summary
Constructors Constructor Description PlaceholderNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TreeNode>children()Gets the list of child nodes of this node.java.lang.Stringcontent()Gets the content of this node.booleanisDecorable()Checks if this node can be decorated.booleanisPlaceholder()Checks if this node is a placeholder.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hu.webarticum.treeprinter.TreeNode
insets, originalNode
-
-
-
-
Method Detail
-
content
public java.lang.String content()
Description copied from interface:TreeNodeGets the content of this node.
-
children
public java.util.List<TreeNode> children()
Description copied from interface:TreeNodeGets the list of child nodes of this node.
-
isDecorable
public boolean isDecorable()
Description copied from interface:TreeNodeChecks if this node can be decorated. By default, decorators should keep non-decorable nodes untouched.- Specified by:
isDecorablein interfaceTreeNode
-
isPlaceholder
public boolean isPlaceholder()
Description copied from interface:TreeNodeChecks if this node is a placeholder. By default, genericTreePrinterimplementations hide placeholder nodes. Some types of implementation (e. g. n-ary trees) should take these into account anyway.- Specified by:
isPlaceholderin interfaceTreeNode
-
-