Package org.apache.bval.jsr.util
Class PathNavigation
- java.lang.Object
-
- org.apache.bval.jsr.util.PathNavigation
-
public class PathNavigation extends Object
Defines a path navigation algorithm and a means of interacting with same.- Version:
- $Rev: 1136233 $ $Date: 2011-06-15 17:49:27 -0500 (Wed, 15 Jun 2011) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PathNavigation.Callback<T>
Path traversal callback function interface.static class
PathNavigation.CallbackProcedure
Callback "procedure" that always returns null.static class
PathNavigation.CompositeCallbackProcedure
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
navigate(CharSequence propertyPath, PathNavigation.Callback<?> callback)
Navigate a path using the specified callback.static <T> T
navigateAndReturn(CharSequence propertyPath, PathNavigation.Callback<? extends T> callback)
Navigate a path using the specified callback, returning its result.
-
-
-
Method Detail
-
navigateAndReturn
public static <T> T navigateAndReturn(CharSequence propertyPath, PathNavigation.Callback<? extends T> callback)
Navigate a path using the specified callback, returning its result.- Type Parameters:
T
-- Parameters:
propertyPath
- , null is assumed empty/rootcallback
-- Returns:
- T result
-
navigate
public static void navigate(CharSequence propertyPath, PathNavigation.Callback<?> callback)
Navigate a path using the specified callback.- Parameters:
propertyPath
-callback
-
-
-