public class ParameterDescriptor extends IgnorableDescriptor<ParameterDescriptor>
RequestDocumentation.parameterWithName(java.lang.String)| Modifier | Constructor and Description |
|---|---|
protected |
ParameterDescriptor(java.lang.String name)
Creates a new
ParameterDescriptor describing the parameter with the given
name. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name of the parameter being described by this descriptor.
|
boolean |
isOptional()
Returns
true if the described parameter is optional, otherwise
false. |
ParameterDescriptor |
optional()
Marks the parameter as optional.
|
ignored, isIgnoredattributes, description, getAttributes, getDescriptionprotected ParameterDescriptor(java.lang.String name)
ParameterDescriptor describing the parameter with the given
name.name - the name of the parameterpublic final ParameterDescriptor optional()
thispublic final java.lang.String getName()
public final boolean isOptional()
true if the described parameter is optional, otherwise
false.true if the described parameter is optional, otherwise
false