IntelliJ IDEA 13.1.0 Web Help

11.0+

View | Tool Windows | Bean Validation

Note

This window is available only for modules with a Bean Validation facet.

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 using the toolbar buttons. You can also open the elements shown in the tool window in the editor.

Toolbar

Use the toolbar buttons to show or hide the corresponding show_hide_what. All the buttons are toggles that enable or disable displaying a category.

Item Tooltip Description
bean_validation_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_validators 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_validators) and also the ones available in the bean validation library that you are using (bean_validation_library_validators).

bean_validation_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.

Opening 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 F4F4F4F4F4F4F4F4F12 or Ctrl+Shift+ECommand Down or F4F4F3.

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

See Also

Getting Started:

Web Resources: