org.infinispan.tools.schema
Class TreeNode

java.lang.Object
  extended by org.infinispan.tools.schema.TreeNode
All Implemented Interfaces:
Comparable<TreeNode>, Iterable<TreeNode>

public class TreeNode
extends Object
implements Iterable<TreeNode>, Comparable<TreeNode>

TreeNode of Infinispan configuration

Since:
4.0
Author:
Vladimir Blagojevic

Constructor Summary
TreeNode()
           
TreeNode(String name, TreeNode parent)
           
 
Method Summary
 void accept(TreeWalker tw)
           
 void addAttribute(com.sun.xml.xsom.XSAttributeDecl att)
           
 int compareTo(TreeNode o)
           
 void detach()
           
 boolean equals(Object other)
           
 Set<com.sun.xml.xsom.XSAttributeDecl> getAttributes()
           
 Class<?> getBeanClass()
           
 Set<TreeNode> getChildren()
           
 int getDepth()
           
 String getName()
           
 TreeNode getParent()
           
 com.sun.xml.xsom.XSComplexType getType()
           
 boolean hasChild(String name)
           
 boolean hasChildren()
           
 int hashCode()
           
 Iterator<TreeNode> iterator()
           
 void setBeanClass(Class<?> bean)
           
 void setType(com.sun.xml.xsom.XSComplexType type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeNode

public TreeNode(String name,
                TreeNode parent)

TreeNode

public TreeNode()
Method Detail

getName

public String getName()

getDepth

public int getDepth()

hasChildren

public boolean hasChildren()

hasChild

public boolean hasChild(String name)

getParent

public TreeNode getParent()

getChildren

public Set<TreeNode> getChildren()

detach

public void detach()

accept

public void accept(TreeWalker tw)

getBeanClass

public Class<?> getBeanClass()

setBeanClass

public void setBeanClass(Class<?> bean)

getType

public com.sun.xml.xsom.XSComplexType getType()

setType

public void setType(com.sun.xml.xsom.XSComplexType type)

addAttribute

public void addAttribute(com.sun.xml.xsom.XSAttributeDecl att)

getAttributes

public Set<com.sun.xml.xsom.XSAttributeDecl> getAttributes()

iterator

public Iterator<TreeNode> iterator()
Specified by:
iterator in interface Iterable<TreeNode>

equals

public boolean equals(Object other)
Overrides:
equals in class Object

compareTo

public int compareTo(TreeNode o)
Specified by:
compareTo in interface Comparable<TreeNode>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.