Interface PropertyTarget
-
- All Known Subinterfaces:
ContainerElementConstraintMappingContext,PropertyConstraintMappingContext,TypeConstraintMappingContext<C>
- All Known Implementing Classes:
ContainerElementConstraintMappingContextImpl,TypeConstraintMappingContextImpl
public interface PropertyTargetFacet of a constraint mapping creational context which allows to select the bean property to which the next operations shall apply.- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Gunnar Morling
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description PropertyConstraintMappingContextfield(String property)Selects a field to which the next operations shall apply.PropertyConstraintMappingContextgetter(String property)Selects a getter to which the next operations shall apply.PropertyConstraintMappingContextproperty(String property, ElementType type)Deprecated.Since 6.1.
-
-
-
Method Detail
-
property
@Deprecated PropertyConstraintMappingContext property(String property, ElementType type)
Deprecated.Since 6.1. Planned for removal. Use eitherfield(String)orgetter(String)instead.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.
-
field
PropertyConstraintMappingContext field(String property)
Selects a field 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 field property.
A given field may only be configured once.
- Parameters:
property- The field name that represents a property on which to apply the following constraints.- Returns:
- A creational context representing the selected field property.
-
getter
PropertyConstraintMappingContext getter(String property)
Selects a getter 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 getter property.
A given getter may only be configured once.
- Parameters:
property- The getter property name (using the Java Bean notation, e.g.nameto addressgetName()) that represents a property on which to apply the following constraints.- Returns:
- A creational context representing the selected getter property.
-
-