org.hibernate.validator.engine
Class LocalExecutionContext<T,V>

java.lang.Object
  extended by org.hibernate.validator.engine.LocalExecutionContext<T,V>

public class LocalExecutionContext<T,V>
extends java.lang.Object

An instance of this class is used to collect all the relevant information for validating a single entity/bean.

Author:
Hardy Ferentschik

Constructor Summary
LocalExecutionContext(T currentBean, java.lang.Class<T> currentBeanType)
           
 
Method Summary
 T getCurrentBean()
           
 java.lang.Class<T> getCurrentBeanType()
           
 java.lang.Class<?> getCurrentGroup()
           
 V getCurrentValidatedValue()
           
 java.lang.annotation.ElementType getElementType()
           
static
<T,V> LocalExecutionContext<T,V>
getLocalExecutionContext(java.lang.Class<T> type)
           
static
<T,V> LocalExecutionContext<T,V>
getLocalExecutionContext(T value)
           
 PathImpl getPropertyPath()
           
 void markCurrentPropertyAsIterable()
           
 void setCurrentGroup(java.lang.Class<?> currentGroup)
           
 void setCurrentValidatedValue(V currentValue)
           
 void setElementType(java.lang.annotation.ElementType elementType)
           
 void setPropertyPath(PathImpl propertyPath)
           
 java.lang.String toString()
           
 boolean validatingDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalExecutionContext

public LocalExecutionContext(T currentBean,
                             java.lang.Class<T> currentBeanType)
Method Detail

getLocalExecutionContext

public static <T,V> LocalExecutionContext<T,V> getLocalExecutionContext(T value)

getLocalExecutionContext

public static <T,V> LocalExecutionContext<T,V> getLocalExecutionContext(java.lang.Class<T> type)

getPropertyPath

public PathImpl getPropertyPath()

getCurrentGroup

public java.lang.Class<?> getCurrentGroup()

getCurrentBean

public T getCurrentBean()

getCurrentBeanType

public java.lang.Class<T> getCurrentBeanType()

getCurrentValidatedValue

public V getCurrentValidatedValue()

setPropertyPath

public void setPropertyPath(PathImpl propertyPath)

setCurrentGroup

public void setCurrentGroup(java.lang.Class<?> currentGroup)

setCurrentValidatedValue

public void setCurrentValidatedValue(V currentValue)

markCurrentPropertyAsIterable

public void markCurrentPropertyAsIterable()

validatingDefault

public boolean validatingDefault()

getElementType

public java.lang.annotation.ElementType getElementType()

setElementType

public void setElementType(java.lang.annotation.ElementType elementType)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007-2010. All Rights Reserved.