Top Description Methods
org.hibernate.validator.cfg.context

public Interface ParameterTarget

Known Direct Subinterfaces
org.hibernate.validator.cfg.context.ReturnValueConstraintMappingContext, org.hibernate.validator.cfg.context.ConstructorConstraintMappingContext, org.hibernate.validator.cfg.context.ContainerElementConstraintMappingContext, org.hibernate.validator.cfg.context.CrossParameterConstraintMappingContext, org.hibernate.validator.cfg.context.MethodConstraintMappingContext, org.hibernate.validator.cfg.context.ParameterConstraintMappingContext

Facet of a constraint mapping creational context which allows to select a method or constructor parameter to which the next operations shall apply.
Authors
Kevin Pollet <[email protected]> (C) 2011 SERLI, Gunnar Morling

Method Summary

Modifier and TypeMethod and Description
public ParameterConstraintMappingContext

Returns:

A creational context representing the selected parameter.
parameter
(int
The parameter index.
index
)

Changes the parameter for which added constraints apply.

Method Detail

parameterback to summary
public ParameterConstraintMappingContext parameter(int index)

Changes the parameter for which added constraints apply. A given parameter may only be configured once.

Parameters
index:int

The parameter index.

Returns:ParameterConstraintMappingContext

A creational context representing the selected parameter.