com.smartbear.swagger4j.impl
Class OperationImpl
java.lang.Object
com.smartbear.swagger4j.impl.OperationImpl
- All Implemented Interfaces:
- Operation
public class OperationImpl
- extends Object
- implements Operation
Default implementation of the Operation interface
- See Also:
Operation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMethod
public Operation.Method getMethod()
- Specified by:
getMethod
in interface Operation
setMethod
public void setMethod(Operation.Method method)
- Specified by:
setMethod
in interface Operation
getNickName
public String getNickName()
- Specified by:
getNickName
in interface Operation
setNickName
public void setNickName(String nickName)
- Specified by:
setNickName
in interface Operation
getResponseClass
public String getResponseClass()
- Specified by:
getResponseClass
in interface Operation
setResponseClass
public void setResponseClass(String responseClass)
- Specified by:
setResponseClass
in interface Operation
getSummary
public String getSummary()
- Specified by:
getSummary
in interface Operation
setSummary
public void setSummary(String summary)
- Specified by:
setSummary
in interface Operation
getNotes
public String getNotes()
- Specified by:
getNotes
in interface Operation
setNotes
public void setNotes(String notes)
- Specified by:
setNotes
in interface Operation
getProduces
public Collection<String> getProduces()
- Specified by:
getProduces
in interface Operation
removeProduces
public void removeProduces(String produces)
- Specified by:
removeProduces
in interface Operation
addProduces
public void addProduces(String produces)
- Specified by:
addProduces
in interface Operation
getConsumes
public Collection<String> getConsumes()
- Specified by:
getConsumes
in interface Operation
removeConsumes
public void removeConsumes(String consumes)
- Specified by:
removeConsumes
in interface Operation
addConsumes
public void addConsumes(String consumes)
- Specified by:
addConsumes
in interface Operation
getParameters
public List<Parameter> getParameters()
- Specified by:
getParameters
in interface Operation
getParameter
public Parameter getParameter(String name)
- Specified by:
getParameter
in interface Operation
removeParameter
public void removeParameter(Parameter parameter)
- Specified by:
removeParameter
in interface Operation
addParameter
public Parameter addParameter(String name,
Parameter.ParamType type)
- Specified by:
addParameter
in interface Operation
getErrorResponses
public List<ErrorResponse> getErrorResponses()
- Specified by:
getErrorResponses
in interface Operation
getErrorResponse
public ErrorResponse getErrorResponse(int code)
- Specified by:
getErrorResponse
in interface Operation
removeErrorResponse
public void removeErrorResponse(ErrorResponse errorResponse)
- Specified by:
removeErrorResponse
in interface Operation
addErrorResponse
public ErrorResponse addErrorResponse(int errorCode,
String reason)
- Specified by:
addErrorResponse
in interface Operation
Copyright © 2013. All Rights Reserved.