org.mmbase.applications.vprowizards.spring.util
Class PathBuilder

java.lang.Object
  extended by org.mmbase.applications.vprowizards.spring.util.PathBuilder

public class PathBuilder
extends Object

This is a helper class to build paths for mmbase queries. You set the steps in the path, and then it checks if the same builder occurs more than one time, and if so, the relevant step names are suffixed with an index number.

Author:
Ernst Bunders

Constructor Summary
PathBuilder(String[] steps)
           
 
Method Summary
 String getPath()
           
 String getStep(int index)
          retrieve the 'safe' name of a certain step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathBuilder

public PathBuilder(String[] steps)
Method Detail

getPath

public String getPath()

getStep

public String getStep(int index)
retrieve the 'safe' name of a certain step. the index is zero based.

Parameters:
index -
Returns:


MMBase 2.0-SNAPSHOT - null