IntelliJ IDEA 2022.1 Help

Bean validation tool window

The Bean Validation tool window provides a categorized hierarchical view of your bean validation resources. These include the appropriately annotated Java sources as well as xml validation descriptors and constraint mappings.

At the top of the hierarchy are your modules. One level below are categories.

The main categories are constraints, constraint validators and constraints mappings.

You can show or hide the categories. You can also open the elements shown in the tool window in the editor.

Show and hide categories

Use the toolbar buttons to show or hide the corresponding category.

Item

Tooltip

Description

Bean validation resources icons constraints

Constraints

Click this button to show or hide the elements related to bean validation constraints.

Shown in this category are the constraints (constraint annotations) defined in your source code (Cdi named) and also the ones available in the bean validation library that you are using (Bean validation library constraints).

For each of the constraints, the related elements are shown (if any). These may be the corresponding constraint validators or other entities that reference the constraint.

Bean validation resources icons bean validation

Validators

Click this button to show or hide bean validators.

Shown in this category are the validators for which you developed the source code yourself Bean validation resources icons bean validation /> and also the ones available in the bean validation library that you are using Bean validation resources icons lib validator.

Bean validation resources icons constraint mappings

Constraint Mappings

Click this button to show or hide xml constraint mappings.

Shown in this category are the xml files that contain the corresponding mappings. For each of the files, a structured view of mapping definition elements is provided.

Open elements in the editor

You can open the elements shown in the Bean Validation tool window in the editor. To do that, select the element of interest and press F4.

To open the elements which are the "leaves" of the tree (that is, the ones at the bottom of the hierarchy), you can also use a double-click.

Last modified: 10 August 2022