org.hibernate.validator.internal.cfg.context
Class MethodConstraintMappingContextImpl
java.lang.Object
org.hibernate.validator.internal.cfg.context.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 (C) 2011 SERLI, 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 © 2012 Oracle Corporation. All Rights Reserved.