com.smartbear.swagger4j.impl
Class ApiImpl
java.lang.Object
com.smartbear.swagger4j.impl.ApiImpl
- All Implemented Interfaces:
- Api
public class ApiImpl
- extends Object
- implements Api
Default implementation of the Api interface
- See Also:
Api
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getPath
public String getPath()
- Specified by:
getPath
in interface Api
setPath
public void setPath(String path)
- Specified by:
setPath
in interface Api
getDescription
public String getDescription()
- Specified by:
getDescription
in interface Api
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interface Api
getOperation
public Operation getOperation(String nickName)
- Specified by:
getOperation
in interface Api
getOperations
public List<Operation> getOperations()
- Specified by:
getOperations
in interface Api
removeOperation
public void removeOperation(Operation operation)
- Specified by:
removeOperation
in interface Api
addOperation
public Operation addOperation(String nickName,
Operation.Method method)
- Description copied from interface:
Api
- Creates a new Operation with the specified nickName and HTTP Method
- Specified by:
addOperation
in interface Api
- Parameters:
nickName
- the unique nickName of this operationmethod
- the HTTP method
- Returns:
- an empty Operation object
Copyright © 2013. All Rights Reserved.