org.hibernate.validator.cfg.context

## Interface PropertyTarget

- All Known Subinterfaces:
    PropertyConstraintMappingContext, TypeConstraintMappingContext<C>
  All Known Implementing Classes:
    PropertyConstraintMappingContextImpl, TypeConstraintMappingContextImpl

      public interface PropertyTarget

  Facet of a constraint mapping creational context which allows to the select the bean property to which the next operations shall apply.
  Author:
    Kevin Pollet (C) 2011 SERLI, Gunnar Morling

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `PropertyConstraintMappingContext` | `property(String property, ElementType type)` Selects a property to which the next operations shall apply.

- - ### Method Detail

    - #### property

          PropertyConstraintMappingContext property(String property,
                                                  ElementType type)

      Selects a property to which the next operations shall apply.

      Until this method is called constraints apply on class level. After calling this method constraints apply on the specified property with the given access type.

      A given property may only be configured once.

      Parameters:
        `property` - The property on which to apply the following constraints (Java Bean notation).
        `type` - The access type (field/property).
      Returns:
        A creational context representing the selected property.

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved