public class SimpleHierarchyProvider extends Object implements HierarchyProvider
stop id="..." recipient="..." type="..." stop ... stop ... stop ...
HierarchyProvider.Stop
Constructor and Description |
---|
SimpleHierarchyProvider() |
public SimpleHierarchyProvider()
public void init(RouteNodeInstance nodeInstance, RouteContext context)
init
in interface HierarchyProvider
public void init(Element element)
element
- the root Element of the hierarchy XMLprotected Element findRootStop(Element e)
e
- the element at which to start the searchRuntimeException
- if no stop elements were encounteredprotected org.kuali.rice.kew.engine.node.hierarchyrouting.SimpleHierarchyProvider.SimpleStop parseStops(Element e, org.kuali.rice.kew.engine.node.hierarchyrouting.SimpleHierarchyProvider.SimpleStop parent)
e
- a stop elementparent
- the parent of the current element (if any)protected org.kuali.rice.kew.engine.node.hierarchyrouting.SimpleHierarchyProvider.SimpleStop parseStop(Element e)
e
- the stop elementpublic List<HierarchyProvider.Stop> getLeafStops(RouteContext context)
getLeafStops
in interface HierarchyProvider
public HierarchyProvider.Stop getStopByIdentifier(String stopId)
getStopByIdentifier
in interface HierarchyProvider
public String getStopIdentifier(HierarchyProvider.Stop stop)
getStopIdentifier
in interface HierarchyProvider
public boolean hasStop(RouteNodeInstance nodeInstance)
hasStop
in interface HierarchyProvider
public void setStop(RouteNodeInstance requestNodeInstance, HierarchyProvider.Stop stop)
setStop
in interface HierarchyProvider
public boolean equals(HierarchyProvider.Stop a, HierarchyProvider.Stop b)
equals
in interface HierarchyProvider
public HierarchyProvider.Stop getParent(HierarchyProvider.Stop stop)
getParent
in interface HierarchyProvider
public boolean isRoot(HierarchyProvider.Stop stop)
isRoot
in interface HierarchyProvider
public HierarchyProvider.Stop getStop(RouteNodeInstance nodeInstance)
getStop
in interface HierarchyProvider
public void configureRequestNode(RouteNodeInstance hierarchyNodeInstance, RouteNode node)
configureRequestNode
in interface HierarchyProvider
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.