public interface PropertyTarget
Modifier and Type | Method and Description |
---|---|
PropertyConstraintMappingContext |
field(String property)
Selects a field to which the next operations shall apply.
|
PropertyConstraintMappingContext |
getter(String property)
Selects a getter to which the next operations shall apply.
|
PropertyConstraintMappingContext |
property(String property,
ElementType type)
Deprecated.
Since 6.1. Planned for removal. Use either
field(String) or
getter(String) instead. |
@Deprecated PropertyConstraintMappingContext property(String property, ElementType type)
field(String)
or
getter(String)
instead.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.
property
- The property on which to apply the following constraints (Java Bean notation).type
- The access type (field/property).PropertyConstraintMappingContext field(String property)
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.
property
- The field name that represents a property on which to apply the following constraints.PropertyConstraintMappingContext getter(String property)
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.
property
- The getter property name (using the Java Bean notation, e.g. name
to address getName()
)
that represents a property on which to apply the following constraints.Copyright © 2007-2021 Red Hat, Inc. All Rights Reserved