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.
Showing and hiding categories
Use the toolbar buttons to show or hide the corresponding category.
Item | Tooltip | Description |
---|---|---|
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 () and also the ones available in the bean validation library that you are using (). 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. | |
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 /> and also the ones available in the bean validation library that you are using . | |
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 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.