org.apache.camel.view
Class GraphSupport

java.lang.Object
  extended by org.apache.camel.view.GraphSupport
Direct Known Subclasses:
GraphGeneratorSupport

public class GraphSupport
extends Object

A base class for Graph processing code of Camel EIPs containing a number of helper methods

Version:
$Revision$

Field Summary
protected  org.apache.commons.logging.Log log
           
protected  Map<Object,NodeData> nodeMap
           
 
Constructor Summary
GraphSupport()
           
 
Method Summary
protected  void addRouteToMap(Map<String,List<RouteDefinition>> map, RouteDefinition route)
           
protected  Map<String,List<RouteDefinition>> createRouteGroupMap(List<RouteDefinition> routes)
           
 String getImagePrefix()
           
protected  String getLabel(ExpressionDefinition expression)
           
protected  String getLabel(List<ExpressionDefinition> expressions)
           
protected  NodeData getNodeData(Object node)
           
protected  boolean isMulticastNode(ProcessorDefinition node)
           
protected  boolean isPipeline(ProcessorDefinition node)
          Is the given node a pipeline
 void setImagePrefix(String imagePrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final transient org.apache.commons.logging.Log log

nodeMap

protected final Map<Object,NodeData> nodeMap
Constructor Detail

GraphSupport

public GraphSupport()
Method Detail

getLabel

protected String getLabel(List<ExpressionDefinition> expressions)

getLabel

protected String getLabel(ExpressionDefinition expression)

getNodeData

protected NodeData getNodeData(Object node)

createRouteGroupMap

protected Map<String,List<RouteDefinition>> createRouteGroupMap(List<RouteDefinition> routes)

addRouteToMap

protected void addRouteToMap(Map<String,List<RouteDefinition>> map,
                             RouteDefinition route)

isMulticastNode

protected boolean isMulticastNode(ProcessorDefinition node)

isPipeline

protected boolean isPipeline(ProcessorDefinition node)
Is the given node a pipeline


getImagePrefix

public String getImagePrefix()

setImagePrefix

public void setImagePrefix(String imagePrefix)


Apache CAMEL