org.unitils.objectvalidation.utils
Class TreeNode
java.lang.Object
org.unitils.objectvalidation.utils.TreeNode
public class TreeNode
- extends Object
Represents the hierarchy of a specific class, with his parent node and his child nodes.
- Since:
- Feb 20, 2012
- Author:
- Jeroen Horemans
TreeNode
public TreeNode(Class<?> value)
addChild
public void addChild(TreeNode child)
addChild
public TreeNode addChild(Class<?> child)
setGenericSubtype
public void setGenericSubtype(List<TreeNode> genericSubtype)
getGenericSubtype
public List<TreeNode> getGenericSubtype()
getValue
public Class<?> getValue()
getParent
public TreeNode getParent()
setParent
public void setParent(TreeNode parent)
getChilds
public List<TreeNode> getChilds()
getType
public Type getType()
setType
public void setType(Type parameterizedType)
toString
public String toString()
- Overrides:
toString in class Object
toString
public StringBuilder toString(TreeNode node,
StringBuilder builder,
String idents)
Copyright © 2013-2015. All Rights Reserved.