public class ParameterDescriptor extends AbstractDescriptor
Descriptor of a parameter of an operation.OperationDescriptor.getParameters()HTTP_METHOD_DELETE, HTTP_METHOD_GET, HTTP_METHOD_HEAD, HTTP_METHOD_OPTIONS, HTTP_METHOD_PATCH, HTTP_METHOD_POST, HTTP_METHOD_PUT, LOCATION_BODY, LOCATION_COOKIE, LOCATION_FORM_DATA, LOCATION_HEADER, LOCATION_PATH, LOCATION_QUERY, SCHEME_HTTP, SCHEME_HTTPS, SCHEME_WS, SCHEME_WSS, STATUS_CODE_BAD_REQUEST, STATUS_CODE_CONFLICT, STATUS_CODE_FORBIDDEN, STATUS_CODE_INTERNAL_SERVER_ERROR, STATUS_CODE_NO_CONTENT, STATUS_CODE_SUCCESS, STATUS_CODE_UNAUTHORIZED| Constructor and Description |
|---|
ParameterDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue() |
String |
getDescription() |
String |
getExample() |
JParameter |
getJavaParameter() |
String |
getJavaScriptType() |
String |
getLocation() |
String |
getName() |
boolean |
isRequired() |
void |
setDefaultValue(String defaultValue) |
void |
setDescription(String description) |
void |
setExample(String example) |
void |
setJavaParameter(JParameter javaParameter) |
void |
setJavaScriptType(String javaScriptType) |
void |
setLocation(String location) |
void |
setName(String name) |
void |
setRequired(boolean required) |
notNullpublic String getName()
public void setName(String name)
name - is the name to setpublic String getLocation()
public void setLocation(String location)
location - is the location to setpublic String getDescription()
public void setDescription(String description)
description - is the description to setpublic String getExample()
public void setExample(String example)
example - is the example to setpublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - is the defaultValue to setpublic boolean isRequired()
public void setRequired(boolean required)
required - is the required to setpublic String getJavaScriptType()
public void setJavaScriptType(String javaScriptType)
javaScriptType - is the javaScriptType to setpublic JParameter getJavaParameter()
public void setJavaParameter(JParameter javaParameter)
javaParameter - is the javaParameter to setCopyright © 2015–2021 MojoHaus. All rights reserved.