Interface ParameterTarget

All Known Subinterfaces:
ConstructorConstraintMappingContext, ContainerElementConstraintMappingContext, CrossParameterConstraintMappingContext, MethodConstraintMappingContext, ParameterConstraintMappingContext, ReturnValueConstraintMappingContext

public interface ParameterTarget
Facet of a constraint mapping creational context which allows to select a method or constructor parameter to which the next operations shall apply.
Author:
Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Gunnar Morling
  • Method Summary

    Modifier and Type
    Method
    Description
    parameter(int index)
    Changes the parameter for which added constraints apply.
  • Method Details

    • parameter

      ParameterConstraintMappingContext parameter(int index)
      Changes the parameter for which added constraints apply. A given parameter may only be configured once.
      Parameters:
      index - The parameter index.
      Returns:
      A creational context representing the selected parameter.