Class ConstrainedParameter

java.lang.Object
org.hibernate.validator.internal.metadata.raw.AbstractConstrainedElement
org.hibernate.validator.internal.metadata.raw.ConstrainedParameter
All Implemented Interfaces:
Iterable<MetaConstraint<?>>, ConstrainedElement

public class ConstrainedParameter extends AbstractConstrainedElement
Contains constraint-related meta-data for one method parameter.
Author:
Gunnar Morling, Guillaume Smet
  • Constructor Details

    • ConstrainedParameter

      public ConstrainedParameter(ConfigurationSource source, Callable callable, Type type, int index)
    • ConstrainedParameter

      public ConstrainedParameter(ConfigurationSource source, Callable callable, Type type, int index, Set<MetaConstraint<?>> constraints, Set<MetaConstraint<?>> typeArgumentConstraints, CascadingMetaDataBuilder cascadingMetaDataBuilder)
      Creates a new parameter meta data object.
      Parameters:
      source - The source of meta data.
      callable - The executable of the represented method parameter.
      type - the parameter type
      index - the index of the parameter
      constraints - The constraints of the represented method parameter, if any.
      typeArgumentConstraints - Type arguments constraints, if any.
      cascadingMetaDataBuilder - The cascaded validation metadata for this element and its container elements.
  • Method Details