public interface HierarchyProvider
Modifier and Type | Interface and Description |
---|---|
static interface |
HierarchyProvider.Stop
Marker interface for objects the represent a "stop" or "node" in a hierarchy.
|
Modifier and Type | Method and Description |
---|---|
void |
configureRequestNode(RouteNodeInstance hiearchyNodeInstance,
RouteNode node)
Configures the single request node definition/prototype used for all node instances
|
boolean |
equals(HierarchyProvider.Stop a,
HierarchyProvider.Stop b) |
List<HierarchyProvider.Stop> |
getLeafStops(RouteContext context)
Find all leaf stops in the xml and convert them into a list of Stop objects
|
HierarchyProvider.Stop |
getParent(HierarchyProvider.Stop stop) |
HierarchyProvider.Stop |
getStop(RouteNodeInstance nodeInstance)
Returns the Stop at the specified routeNodeInstance, or null if the node instance
is not associated with a Stop
|
HierarchyProvider.Stop |
getStopByIdentifier(String stopId) |
String |
getStopIdentifier(HierarchyProvider.Stop stop) |
boolean |
hasStop(RouteNodeInstance nodeInstance) |
void |
init(RouteNodeInstance nodeInstance,
RouteContext context)
Initializer for the hierarchy provider.
|
boolean |
isRoot(HierarchyProvider.Stop stop) |
void |
setStop(RouteNodeInstance requestNodeInstance,
HierarchyProvider.Stop stop)
Set any state necessary on the request node instance for a given stop.
|
void init(RouteNodeInstance nodeInstance, RouteContext context)
nodeInstance
- the HierarchyRouteNode instancecontext
- the RouteContext (nodeInstance may NOT be the HierarchyRouteNode instance; e.g. when transitioning into)List<HierarchyProvider.Stop> getLeafStops(RouteContext context)
context
- the RouteContextboolean hasStop(RouteNodeInstance nodeInstance)
nodeInstance
- the node instanceHierarchyProvider.Stop getStop(RouteNodeInstance nodeInstance)
nodeInstance
- the node instance to checkvoid setStop(RouteNodeInstance requestNodeInstance, HierarchyProvider.Stop stop)
requestNodeInstance
- the request node instancestop
- the stop for the request nodeString getStopIdentifier(HierarchyProvider.Stop stop)
stop
- the stopHierarchyProvider.Stop getStopByIdentifier(String stopId)
stopId
- the stop identifierHierarchyProvider.Stop getParent(HierarchyProvider.Stop stop)
stop
- a stopboolean isRoot(HierarchyProvider.Stop stop)
stop
- the stopboolean equals(HierarchyProvider.Stop a, HierarchyProvider.Stop b)
a
- one stopb
- another stopvoid configureRequestNode(RouteNodeInstance hiearchyNodeInstance, RouteNode node)
hiearchyNodeInstance
- the hierarchy node instancenode
- the request node definition/prototypeCopyright © 2005–2015 The Kuali Foundation. All rights reserved.