org.apache.bval.jsr303
Interface GroupValidationContext<T>

All Superinterfaces:
ValidationContext<ConstraintValidationListener<T>>
All Known Implementing Classes:
GroupValidationContextImpl

public interface GroupValidationContext<T>
extends ValidationContext<ConstraintValidationListener<T>>

Description: JSR-303 ValidationContext extension.


Method Summary
 boolean collectValidated(ConstraintValidator<?,?> constraint)
          Accumulate a validated constraint.
 ConstraintValidation<?> getConstraintValidation()
          Get the ConstraintValidation.
 Group getCurrentGroup()
          Get the current Group.
 Class<?> getCurrentOwner()
          Get the current owning class.
 Groups getGroups()
          Get the groups of this GroupValidationContext.
 MessageInterpolator getMessageResolver()
          Get the message resolver.
 PathImpl getPropertyPath()
          Get the property path.
 MetaBean getRootMetaBean()
          Get the root MetaBean.
 TraversableResolver getTraversableResolver()
          Get the TraversableResolver.
 Object getValidatedValue()
          Get the value being validated.
 void setConstraintValidation(ConstraintValidation<?> constraint)
          Set the ConstraintValidation.
 void setCurrentGroup(Group group)
          Set the current Group.
 void setCurrentOwner(Class<?> currentOwner)
          Set the current owning class.
 void setFixedValue(Object value)
          Set a fixed value for the context.
 
Methods inherited from interface org.apache.bval.model.ValidationContext
collectValidated, getAccess, getBean, getListener, getMetaBean, getMetaProperty, getPropertyName, getPropertyValue, getPropertyValue, moveDown, moveUp, setBean, setBean, setCurrentIndex, setCurrentKey, setMetaBean, setMetaProperty
 

Method Detail

getGroups

Groups getGroups()
Get the groups of this GroupValidationContext.

Returns:
the groups in their sequence for validation

setCurrentGroup

void setCurrentGroup(Group group)
Set the current Group.

Parameters:
group - to set

getCurrentGroup

Group getCurrentGroup()
Get the current Group.

Returns:
Group

getPropertyPath

PathImpl getPropertyPath()
Get the property path.

Returns:
PathImpl

getRootMetaBean

MetaBean getRootMetaBean()
Get the root MetaBean.

Returns:
MetaBean

setConstraintValidation

void setConstraintValidation(ConstraintValidation<?> constraint)
Set the ConstraintValidation.

Parameters:
constraint - to set

getConstraintValidation

ConstraintValidation<?> getConstraintValidation()
Get the ConstraintValidation.

Returns:
ConstraintValidation

getValidatedValue

Object getValidatedValue()
Get the value being validated.

Returns:
Object

setFixedValue

void setFixedValue(Object value)
Set a fixed value for the context.

Parameters:
value - to set

getMessageResolver

MessageInterpolator getMessageResolver()
Get the message resolver.

Returns:
MessageInterpolator

getTraversableResolver

TraversableResolver getTraversableResolver()
Get the TraversableResolver.

Returns:
TraversableResolver

collectValidated

boolean collectValidated(ConstraintValidator<?,?> constraint)
Accumulate a validated constraint.

Parameters:
constraint -
Returns:
true when the constraint for the object in this path was not already validated in this context

getCurrentOwner

Class<?> getCurrentOwner()
Get the current owning class.

Returns:
Class

setCurrentOwner

void setCurrentOwner(Class<?> currentOwner)
Set the current owning class.

Parameters:
currentOwner - to set


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.