Interface ConstraintValidatorContext. ConstraintViolationBuilder. LeafNodeContextBuilder
-
- Enclosing interface:
- ConstraintValidatorContext.ConstraintViolationBuilder
public static interface ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeContextBuilder
Represents refinement choices for a node which is in anIterator
orMap
. If the iterator is an indexed collection or a map, the index or the key should be set. The node is a leaf node (i.e. no subnode can be added).- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ConstraintValidatorContext
addConstraintViolation()
Adds the newConstraintViolation
to be generated if the constraint validator mark the value as invalid.ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext
atIndex(Integer index)
Defines the index the object is into theList
or arrayConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext
atKey(Object key)
Defines the key the object is into theMap
.
-
-
-
Method Detail
-
atKey
ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext atKey(Object key)
Defines the key the object is into theMap
.- Parameters:
key
- map key- Returns:
- a builder representing the current node
-
atIndex
ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext atIndex(Integer index)
Defines the index the object is into theList
or array- Parameters:
index
- index- Returns:
- a builder representing the current node
-
addConstraintViolation
ConstraintValidatorContext addConstraintViolation()
Adds the newConstraintViolation
to be generated if the constraint validator mark the value as invalid. Methods of theConstraintViolationBuilder
instance this object comes from and the constraint violation builder nested objects throwIllegalStateException
after this call.- Returns:
ConstraintValidatorContext
instance theConstraintViolationBuilder
comes from
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
07/10/2025 04:09:35 Cette version de la page est en cache (à la date du 07/10/2025 04:09:35) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/validation/ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeContextBuilder.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.