com.smartbear.swagger4j.impl
Class ApiImpl

java.lang.Object
  extended by 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

Method Summary
 Operation addOperation(String nickName, Operation.Method method)
          Creates a new Operation with the specified nickName and HTTP Method
 String getDescription()
           
 Operation getOperation(String nickName)
           
 List<Operation> getOperations()
           
 String getPath()
           
 void removeOperation(Operation operation)
           
 void setDescription(String description)
           
 void setPath(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 operation
method - the HTTP method
Returns:
an empty Operation object


Copyright © 2013. All Rights Reserved.