hudson.plugins.violations.util
Class RecurDynamic

java.lang.Object
  extended by hudson.plugins.violations.util.RecurDynamic

public class RecurDynamic
extends java.lang.Object

A helper class to recurse down a uri path to an object. I do not know how to do this any other way.


Constructor Summary
RecurDynamic(java.lang.String pathSoFar, java.lang.String pathToReach, java.lang.Object endObject)
          Create a RecurDynamic helper object.
 
Method Summary
 java.lang.Object getDynamic(java.lang.String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Get the next object for the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecurDynamic

public RecurDynamic(java.lang.String pathSoFar,
                    java.lang.String pathToReach,
                    java.lang.Object endObject)
Create a RecurDynamic helper object.

Parameters:
pathSoFar - the path reached up to this object.
pathToReach - the path that is being parsed.
endObject - the object to return for the last token of the path.
Method Detail

getDynamic

public java.lang.Object getDynamic(java.lang.String token,
                                   org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
Get the next object for the path.

Parameters:
token - the current token.
req - the http/stapler request object.
rsp - the http/stapler response object.
Returns:
the end object if the token is the last token, another RecurDynamic if not at the end of the path, null if the path does not match.


Copyright © 2004-2012. All Rights Reserved.