Class ParameterDescriptor


public class ParameterDescriptor extends IgnorableDescriptor<ParameterDescriptor>
A descriptor of a request or path parameter.
Author:
Andy Wilkinson
See Also:
  • Constructor Details

    • ParameterDescriptor

      protected ParameterDescriptor(String name)
      Creates a new ParameterDescriptor describing the parameter with the given name.
      Parameters:
      name - the name of the parameter
  • Method Details

    • optional

      public final ParameterDescriptor optional()
      Marks the parameter as optional.
      Returns:
      this
    • getName

      public final String getName()
      Returns the name of the parameter being described by this descriptor.
      Returns:
      the name of the parameter
    • isOptional

      public final boolean isOptional()
      Returns true if the described parameter is optional, otherwise false.
      Returns:
      true if the described parameter is optional, otherwise false