public class Oas30PathItem extends OasPathItem implements IServerParent
Modifier and Type | Field and Description |
---|---|
String |
description |
List<Server> |
servers |
String |
summary |
Oas30Operation |
trace |
$ref, delete, get, head, options, parameters, patch, post, put
_extensions
_attributes, _extraProperties, _modelId, _ownerDocument, _parent, _validationProblems
Constructor and Description |
---|
Oas30PathItem(String path)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addServer(Oas30Server server)
Adds a server.
|
void |
addServer(Server server)
Adds a server.
|
OasOperation |
createOperation(String method)
Creates an OAS operation object.
|
OasParameter |
createParameter()
Creates a child parameter.
|
Server |
createServer()
Creates a server.
|
Server |
getServer(String url)
Gets a server by URL.
|
List<Server> |
getServers()
Gets the servers.
|
void |
setOperation(OasOperation operation)
Sets the given operation on this path item.
|
accept, addParameter, getParameter, getParameters, getParametersIn, getPath, getReference, rename, setReference
addExtension, clearExtensions, createExtension, getExtension, getExtensions, isExtensible, removeExtension
addExtraProperty, addValidationProblem, attachToParent, clearAttributes, clearValidationProblems, getAttribute, getAttributeNames, getExtraProperty, getExtraPropertyNames, getValidationProblemCodes, getValidationProblems, getValidationProblemsFor, hasExtraProperties, isAttached, modelId, ownerDocument, parent, removeExtraProperty, setAttribute
public String summary
public String description
public Oas30Operation trace
public Oas30PathItem(String path)
path
- public OasOperation createOperation(String method)
OasPathItem
createOperation
in class OasPathItem
OasPathItem.createOperation(java.lang.String)
public OasParameter createParameter()
OasPathItem
createParameter
in interface IOasParameterParent
createParameter
in class OasPathItem
OasPathItem.createParameter()
public Server createServer()
IServerParent
createServer
in interface IServerParent
IServerParent.createServer()
public void addServer(Oas30Server server)
server
- public List<Server> getServers()
getServers
in interface IServerParent
public void setOperation(OasOperation operation)
OasPathItem
setOperation
in class OasPathItem
OasPathItem.setOperation(io.apicurio.datamodels.openapi.models.OasOperation)
public void addServer(Server server)
IServerParent
addServer
in interface IServerParent
IServerParent.addServer(io.apicurio.datamodels.core.models.common.Server)
public Server getServer(String url)
IServerParent
getServer
in interface IServerParent
IServerParent.getServer(java.lang.String)
Copyright © 2020 Red Hat. All rights reserved.