org.jboss.kernel.plugins.deployment.props
Class TreeVertex<T extends org.jboss.util.graph.Vertex<String>>

java.lang.Object
  extended by org.jboss.util.graph.Vertex<String>
      extended by org.jboss.kernel.plugins.deployment.props.TreeVertex<T>
Type Parameters:
T - exact vertex type
Direct Known Subclasses:
ComplexValueVertex, DeploymentVertex, SimpleValueVertex, ValueMetaDataAwareVertex

public abstract class TreeVertex<T extends org.jboss.util.graph.Vertex<String>>
extends org.jboss.util.graph.Vertex<String>

Tree vertex.

Author:
Ales Justin

Field Summary
protected  org.jboss.logging.Logger log
          The logger
 
Constructor Summary
protected TreeVertex(String name)
           
 
Method Summary
protected static Set<org.jboss.util.graph.Vertex<String>> getChildren(org.jboss.util.graph.Vertex<String> vertex)
          Get children from vertext param.
protected  String getLastToken()
          Get the last token.
protected static org.jboss.util.graph.Vertex<String> getNext(org.jboss.util.graph.Vertex<String> vertex)
          Get the next vertex.
protected static org.jboss.util.graph.Vertex<String> getParent(org.jboss.util.graph.Vertex<String> vertex)
          Get the parent vertex from vertex param.
protected static org.jboss.util.graph.Vertex<String> getPrevious(org.jboss.util.graph.Vertex<String> vertex)
          Get previous from vertex param.
 void visit()
           
abstract  void visit(T parent, Set<org.jboss.util.graph.Vertex<String>> children)
          Do the visit.
 
Methods inherited from class org.jboss.util.graph.Vertex
addEdge, addIncomingEdge, addOutgoingEdge, clearMark, cost, findEdge, findEdge, getData, getIncomingEdge, getIncomingEdgeCount, getIncomingEdges, getMarkState, getName, getOutgoingEdge, getOutgoingEdgeCount, getOutgoingEdges, hasEdge, hasEdge, mark, remove, setData, setMarkState, toString, visited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected org.jboss.logging.Logger log
The logger

Constructor Detail

TreeVertex

protected TreeVertex(String name)
Method Detail

visit

public void visit()
Overrides:
visit in class org.jboss.util.graph.Vertex<String>

getLastToken

protected String getLastToken()
Get the last token.

Returns:
last token string

getParent

protected static org.jboss.util.graph.Vertex<String> getParent(org.jboss.util.graph.Vertex<String> vertex)
Get the parent vertex from vertex param.

Parameters:
vertex - the vertex to check
Returns:
parent vertex

getChildren

protected static Set<org.jboss.util.graph.Vertex<String>> getChildren(org.jboss.util.graph.Vertex<String> vertex)
Get children from vertext param.

Parameters:
vertex - the vertex to check
Returns:
children vertices

getPrevious

protected static org.jboss.util.graph.Vertex<String> getPrevious(org.jboss.util.graph.Vertex<String> vertex)
Get previous from vertex param.

Parameters:
vertex - the vertex
Returns:
previous vertex

getNext

protected static org.jboss.util.graph.Vertex<String> getNext(org.jboss.util.graph.Vertex<String> vertex)
Get the next vertex.

Parameters:
vertex - the vertex
Returns:
next vertex

visit

public abstract void visit(T parent,
                           Set<org.jboss.util.graph.Vertex<String>> children)
Do the visit.

Parameters:
parent - the parent vertex
children - the children vertices


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