org.hibernate.validator.cfg.context.impl
Class MethodConstraintMappingContextImpl
java.lang.Object
org.hibernate.validator.cfg.context.impl.MethodConstraintMappingContextImpl
- All Implemented Interfaces:
- MethodConstraintMappingContext, ParameterTarget, ReturnValueTarget
public class MethodConstraintMappingContextImpl
- extends Object
- implements MethodConstraintMappingContext
A constraint mapping creational context which allows to select the parameter or
return value to which the next operations shall apply.
- Author:
- Kevin Pollet - SERLI - (kevin.pollet@serli.com), Gunnar Morling
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodConstraintMappingContextImpl
public MethodConstraintMappingContextImpl(Class<?> beanClass,
Method method,
ConstraintMappingContext mapping)
parameter
public ParameterConstraintMappingContext parameter(int index)
- Description copied from interface:
ParameterTarget
- Changes the parameter for which added constraints apply.
- Specified by:
parameter
in interface ParameterTarget
- Parameters:
index
- The parameter index.
- Returns:
- A creational context representing the selected parameter.
returnValue
public ReturnValueConstraintMappingContext returnValue()
- Description copied from interface:
ReturnValueTarget
- Selects the current method's return value as the target for the next operations.
- Specified by:
returnValue
in interface ReturnValueTarget
- Returns:
- A creational context representing the current method's return value.
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved