public interface PropertyTarget
Modifier and Type | Method and Description |
---|---|
PropertyConstraintMappingContext |
property(java.lang.String property,
java.lang.annotation.ElementType type)
Selects a property to which the next operations shall apply.
|
PropertyConstraintMappingContext property(java.lang.String property, java.lang.annotation.ElementType type)
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).Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved