Class ParameterDescriptor
java.lang.Object
org.codehaus.mojo.servicedocgen.descriptor.AbstractDescriptor
org.codehaus.mojo.servicedocgen.descriptor.ParameterDescriptor
- All Implemented Interfaces:
Descriptor
Descriptor of a parameter of an operation.- Author:
- hohwille
- See Also:
-
Field Summary
Fields inherited from interface Descriptor
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanvoidsetDefaultValue(String defaultValue) voidsetDescription(String description) voidsetExample(String example) voidsetJavaParameter(JParameter javaParameter) voidsetJavaScriptType(String javaScriptType) voidsetLocation(String location) voidvoidsetRequired(boolean required) Methods inherited from class AbstractDescriptor
notNull
-
Constructor Details
-
ParameterDescriptor
public ParameterDescriptor()
-
-
Method Details
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- is the name to set
-
getLocation
- Returns:
- the in
- See Also:
-
setLocation
- Parameters:
location- is the location to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- is the description to set
-
getExample
- Returns:
- the example
-
setExample
- Parameters:
example- is the example to set
-
getDefaultValue
- Returns:
- the defaultValue
-
setDefaultValue
- Parameters:
defaultValue- is the defaultValue to set
-
isRequired
public boolean isRequired()- Returns:
- the required
-
setRequired
public void setRequired(boolean required) - Parameters:
required- is the required to set
-
getJavaScriptType
- Returns:
- the javaScriptType
-
setJavaScriptType
- Parameters:
javaScriptType- is the javaScriptType to set
-
getJavaParameter
- Returns:
- the javaParameter
-
setJavaParameter
- Parameters:
javaParameter- is the javaParameter to set
-