org.apache.bval.jsr303.util
Class ValidationContextTraversal

java.lang.Object
  extended by org.apache.bval.jsr303.util.PathNavigation.CallbackProcedure
      extended by org.apache.bval.jsr303.util.ValidationContextTraversal
All Implemented Interfaces:
PathNavigation.Callback<Object>

public class ValidationContextTraversal
extends PathNavigation.CallbackProcedure

ValidationContext traversal PathNavigation.CallbackProcedure.

Version:
$Rev: 1137074 $ $Date: 2011-06-17 18:20:30 -0500 (Fri, 17 Jun 2011) $

Constructor Summary
ValidationContextTraversal(ValidationContext<?> validationContext)
          Create a new ValidationContextTraversal instance.
 
Method Summary
protected  void complete()
          Complete this CallbackProcedure.
 Class<?> getRawType()
           
 Type getType()
           
 void handleGenericInIterable()
          Handle contiguous [].
 void handleIndexOrKey(String token)
          Handle an index or key embedded in [].
 void handleProperty(String token)
          Handle a .-delimited property.
 void init()
          Initialize from ValidationContext.
 void moveDownIfNecessary()
          If we currently have a property, navigate the context such that the property becomes the bean, in preparation for another property.
protected  void setType(Type type)
          Set the type of the expression processed thus far.
 
Methods inherited from class org.apache.bval.jsr303.util.PathNavigation.CallbackProcedure
result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationContextTraversal

public ValidationContextTraversal(ValidationContext<?> validationContext)
Create a new ValidationContextTraversal instance.

Parameters:
validationContext -
Method Detail

init

public void init()
Initialize from ValidationContext.


handleIndexOrKey

public void handleIndexOrKey(String token)
Handle an index or key embedded in [].


handleProperty

public void handleProperty(String token)
Handle a .-delimited property.


moveDownIfNecessary

public void moveDownIfNecessary()
If we currently have a property, navigate the context such that the property becomes the bean, in preparation for another property.

Parameters:
validationContext -

setType

protected void setType(Type type)
Set the type of the expression processed thus far.

Parameters:
type -

handleGenericInIterable

public void handleGenericInIterable()
Handle contiguous [].


getType

public Type getType()
Returns:
the type

getRawType

public Class<?> getRawType()
Returns:
the rawType

complete

protected void complete()
Complete this CallbackProcedure. Default implementation is noop.

Overrides:
complete in class PathNavigation.CallbackProcedure


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.