org.unitils.objectvalidation.utils
Class TreeNode

java.lang.Object
  extended by 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

Constructor Summary
TreeNode(Class<?> value)
           
 
Method Summary
 TreeNode addChild(Class<?> child)
           
 void addChild(TreeNode child)
           
 List<TreeNode> getChilds()
           
 List<TreeNode> getGenericSubtype()
           
 TreeNode getParent()
           
 Type getType()
           
 Class<?> getValue()
           
 void setGenericSubtype(List<TreeNode> genericSubtype)
           
 void setParent(TreeNode parent)
           
 void setType(Type parameterizedType)
           
 String toString()
           
 StringBuilder toString(TreeNode node, StringBuilder builder, String idents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeNode

public TreeNode(Class<?> value)
Method Detail

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.