Annotation Interface Port
Annotation that indicates that an option/argument denotes a port number and
its value should be restricted as such to a specific set of port classes as
defined by
PortType. If you want to restrict to more specific ranges
use the PortRange or PortRanges annotations instead.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionPortType[]The acceptable port types, defaults toPortType#OS_ALLOCATED,PortType#USERandPortType#DYNAMIC
-
Element Details
-
acceptablePorts
PortType[] acceptablePortsThe acceptable port types, defaults toPortType#OS_ALLOCATED,PortType#USERandPortType#DYNAMIC- Returns:
- Acceptable port types
- Default:
{OS_ALLOCATED, USER, DYNAMIC}
-