org.kuali.rice.krad.workflow.service.impl
Class WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker

java.lang.Object
  extended by org.kuali.rice.krad.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker
Enclosing class:
WorkflowAttributePropertyResolutionServiceImpl

 class WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker
extends Object

Inner helper class which will track which routing attributes have been used


Field Summary
private  Stack<Integer> checkPoints
           
private  int currentRoutingAttributeIndex
           
private  List<RoutingAttribute> routingAttributes
           
 
Constructor Summary
WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker(List<RoutingAttribute> routingAttributes)
          Constructs a WorkflowAttributePropertyResolutionServiceImpl
 
Method Summary
 void backUpToCheckPoint()
          Returns to the point of the last check point
 void checkPoint()
          Check points at the current routing attribute, so that this position is saved
 RoutingAttribute getCurrentRoutingAttribute()
           
 void moveToNext()
          Moves this routing attribute tracker to its next routing attribute
 void reset()
          Resets this RoutingAttributeTracker, setting the current RoutingAttribute back to the top one and clearing the check point stack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

routingAttributes

private List<RoutingAttribute> routingAttributes

currentRoutingAttributeIndex

private int currentRoutingAttributeIndex

checkPoints

private Stack<Integer> checkPoints
Constructor Detail

WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker

public WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker(List<RoutingAttribute> routingAttributes)
Constructs a WorkflowAttributePropertyResolutionServiceImpl

Parameters:
routingAttributes - the routing attributes to track
Method Detail

getCurrentRoutingAttribute

public RoutingAttribute getCurrentRoutingAttribute()
Returns:
the routing attribute hopefully associated with the current qualifier

moveToNext

public void moveToNext()
Moves this routing attribute tracker to its next routing attribute


checkPoint

public void checkPoint()
Check points at the current routing attribute, so that this position is saved


backUpToCheckPoint

public void backUpToCheckPoint()
Returns to the point of the last check point


reset

public void reset()
Resets this RoutingAttributeTracker, setting the current RoutingAttribute back to the top one and clearing the check point stack



Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.