|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HierarchyProvider
HierarchyProvider is responsible for exposing the hierarchy that the HierarchyRoutingNode climbs/descends.
Nested Class Summary | |
---|---|
static interface |
HierarchyProvider.Stop
Marker interface for objects the represent a "stop" or "node" in a hierarchy. |
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 RouteContext
boolean hasStop(RouteNodeInstance nodeInstance)
nodeInstance
- the node instance
HierarchyProvider.Stop getStop(RouteNodeInstance nodeInstance)
nodeInstance
- the node instance to check
void setStop(RouteNodeInstance requestNodeInstance, HierarchyProvider.Stop stop)
requestNodeInstance
- the request node instancestop
- the stop for the request nodeString getStopIdentifier(HierarchyProvider.Stop stop)
stop
- the stop
HierarchyProvider.Stop getStopByIdentifier(String stopId)
stopId
- the stop identifier
HierarchyProvider.Stop getParent(HierarchyProvider.Stop stop)
stop
- a stop
boolean isRoot(HierarchyProvider.Stop stop)
stop
- the stop
boolean equals(HierarchyProvider.Stop a, HierarchyProvider.Stop b)
a
- one stopb
- another stop
void configureRequestNode(RouteNodeInstance hiearchyNodeInstance, RouteNode node)
hiearchyNodeInstance
- the hierarchy node instancenode
- the request node definition/prototype
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |