Sun GlassFish Enterprise Server v3 Prelude Add-On Component Development Guide

Specifying the Acceptable Values of a Parameter

When a user runs the command, the Enterprise Server validates option arguments and operands against the acceptable values that you specify in your implementation.

To specify the acceptable values of a parameter, set the acceptableValues element of the @Param annotation to a string that contains a comma-separated list of acceptable values. If you do not set this element, any string of characters is acceptable.