New Validation Constraint Wizard: Name and Location

Use to generate a custom validation constraint class. You can select the Generate Validator Class option in the wizard if you want the IDE to also generate a constraint validator class for the validation constraint.

In the Name and Location page you set the following properties:

Element Description

Class Name

Specifies the name of the constraint class.

Project

Specifies the project in which the constraint class will be located.

Location

Specifies a folder to house the constraint class.

Package

Specifies a package within the location to house the constraint class.

Created File

Displays the full path to the new constraint class.

Generate Validator Class

Select this option if you want the IDE to also generate a constraint validator class.

If you select this option you need to supply the following details for the generated class.

    Validator Class Name

Type the name of the constraint validator class.

    Java type to Validate

Type the Java type that is to be validated.



Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.