|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.ProcessorDefinitionHelper
public final class ProcessorDefinitionHelper
Helper class for ProcessorDefinition and the other model classes.
| Method Summary | ||
|---|---|---|
static
|
filterTypeInOutputs(List<ProcessorDefinition> outputs,
Class<T> type)
Looks for the given type in the list of outputs and recurring all the children as well. |
|
static
|
findFirstTypeInOutputs(List<ProcessorDefinition> outputs,
Class<T> type)
Looks for the given type in the list of outputs and recurring all the children as well. |
|
static RouteDefinition |
getRoute(ProcessorDefinition<?> node)
Gets the route definition the given node belongs to. |
|
static boolean |
hasOutputs(List<ProcessorDefinition> outputs,
boolean excludeAbstract)
Is there any outputs in the given list. |
|
static boolean |
isFirstChildOfType(Class<?> parentType,
ProcessorDefinition<?> node)
Is the given child the first in the outputs from the parent? |
|
static boolean |
isParentOfType(Class<?> parentType,
ProcessorDefinition<?> node,
boolean recursive)
Is the given node parent(s) of the given type |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> Iterator<T> filterTypeInOutputs(List<ProcessorDefinition> outputs,
Class<T> type)
outputs - list of outputs, can be null or empty.type - the type to look for
public static <T> T findFirstTypeInOutputs(List<ProcessorDefinition> outputs,
Class<T> type)
outputs - list of outputs, can be null or empty.type - the type to look for
public static boolean isFirstChildOfType(Class<?> parentType,
ProcessorDefinition<?> node)
parentType - the type the parent must benode - the node
public static boolean isParentOfType(Class<?> parentType,
ProcessorDefinition<?> node,
boolean recursive)
parentType - the parent typenode - the current noderecursive - whether or not to check grand parent(s) as well
public static RouteDefinition getRoute(ProcessorDefinition<?> node)
node - the node
public static boolean hasOutputs(List<ProcessorDefinition> outputs,
boolean excludeAbstract)
outputs - the outputsexcludeAbstract - whether or not to exclude abstract outputs (e.g. skip onException etc.)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||