org.springframework.web.servlet.view.path
Class CommonsBeanUtilslPathTracker

java.lang.Object
  extended by org.springframework.web.servlet.view.path.CommonsBeanUtilslPathTracker

public class CommonsBeanUtilslPathTracker
extends Object


Constructor Summary
CommonsBeanUtilslPathTracker()
           
CommonsBeanUtilslPathTracker(int initialCapacity)
           
 
Method Summary
protected  int getCapacity()
           
protected  Map[] getIndexMapStack()
           
 CommonsBeanUtilsPath getPath()
          Current Path in stream.
protected  CommonsBeanUtilsPathElement[] getPathStack()
           
 int getPointer()
           
 void popElement()
          Notify the tracker that the stream has moved out of an element.
 void pushElement(String name, CommonsBeanUtilsPathElement element)
          Notify the tracker that the stream has moved into a new element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsBeanUtilslPathTracker

public CommonsBeanUtilslPathTracker()

CommonsBeanUtilslPathTracker

public CommonsBeanUtilslPathTracker(int initialCapacity)
Parameters:
initialCapacity - Size of the initial stack of nodes (one level per depth in the tree). Note that this is only for optimizations - the stack will resize itself if it exceeds its capacity. If in doubt, use the other constructor.
Method Detail

pushElement

public void pushElement(String name,
                        CommonsBeanUtilsPathElement element)
Notify the tracker that the stream has moved into a new element. Integer index = (Integer)indexMapStack[pointer].get(pathStack[pointer].getName()); if(index == null) indexMapStack[pointer].put(pathStack[pointer].getName(), new Integer(0)); else indexMapStack[pointer].put( pathStack[pointer].getName(), index + 1);

Parameters:
name - Name of the element

popElement

public void popElement()
Notify the tracker that the stream has moved out of an element.


getPath

public CommonsBeanUtilsPath getPath()
Current Path in stream.


getCapacity

protected int getCapacity()

getPathStack

protected CommonsBeanUtilsPathElement[] getPathStack()

getIndexMapStack

protected Map[] getIndexMapStack()

getPointer

public int getPointer()


Copyright © 2010. All Rights Reserved.