Class OpenApi31ResponsesImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.openapi.v31.OpenApi31ResponsesImpl
-
- All Implemented Interfaces:
Extensible,MappedNode<OpenApiResponse>,Node,OpenApiExtensible,OpenApiReferenceable,OpenApiResponses,OpenApi31Extensible,OpenApi31Referenceable,OpenApi31Responses,Referenceable,Visitable
public class OpenApi31ResponsesImpl extends NodeImpl implements OpenApi31Responses
-
-
Constructor Summary
Constructors Constructor Description OpenApi31ResponsesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)voidaddExtension(String name, com.fasterxml.jackson.databind.JsonNode value)voidaddItem(String name, OpenApiResponse item)Adds a child item.voidclearExtensions()voidclearItems()Removes all children.OpenApi31ResponsecreateResponse()NodeemptyClone()Stringget$ref()OpenApiResponsegetDefault()StringgetDescription()Map<String,com.fasterxml.jackson.databind.JsonNode>getExtensions()OpenApiResponsegetItem(String name)Gets a single item (indexed child) by name.List<String>getItemNames()Gets a list of the names of all indexed children.List<OpenApiResponse>getItems()Returns an array of all the child items.StringgetSummary()voidinsertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)voidinsertItem(String name, OpenApiResponse item, int atIndex)Inserts a child item.voidremoveExtension(String name)OpenApiResponseremoveItem(String name)Removes a child item by name and returns the deleted child or undefined if there wasn't one.voidset$ref(String value)voidsetDefault(OpenApiResponse value)voidsetDescription(String value)voidsetSummary(String value)-
Methods inherited from class io.apicurio.datamodels.models.NodeImpl
_setMapPropertyName, _setParentPropertyName, _setParentPropertyType, addExtraProperty, attach, clearNodeAttributes, getExtraProperty, getExtraPropertyNames, getNodeAttribute, getNodeAttributeNames, hasExtraProperties, isAttached, isEntity, isEntityList, isEntityMap, mapPropertyName, modelId, parent, parentPropertyName, parentPropertyType, removeExtraProperty, root, setNodeAttribute, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.apicurio.datamodels.models.Node
addExtraProperty, attach, clearNodeAttributes, getExtraProperty, getExtraPropertyNames, getNodeAttribute, getNodeAttributeNames, hasExtraProperties, isAttached, mapPropertyName, modelId, parent, parentPropertyName, parentPropertyType, removeExtraProperty, root, setNodeAttribute
-
-
-
-
Method Detail
-
get$ref
public String get$ref()
- Specified by:
get$refin interfaceOpenApi31Responses- Specified by:
get$refin interfaceReferenceable
-
set$ref
public void set$ref(String value)
- Specified by:
set$refin interfaceOpenApi31Responses- Specified by:
set$refin interfaceReferenceable
-
getSummary
public String getSummary()
- Specified by:
getSummaryin interfaceOpenApi31Referenceable- Specified by:
getSummaryin interfaceOpenApi31Responses
-
setSummary
public void setSummary(String value)
- Specified by:
setSummaryin interfaceOpenApi31Referenceable- Specified by:
setSummaryin interfaceOpenApi31Responses
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceOpenApi31Referenceable- Specified by:
getDescriptionin interfaceOpenApi31Responses
-
setDescription
public void setDescription(String value)
- Specified by:
setDescriptionin interfaceOpenApi31Referenceable- Specified by:
setDescriptionin interfaceOpenApi31Responses
-
getDefault
public OpenApiResponse getDefault()
- Specified by:
getDefaultin interfaceOpenApiResponses
-
setDefault
public void setDefault(OpenApiResponse value)
- Specified by:
setDefaultin interfaceOpenApiResponses
-
createResponse
public OpenApi31Response createResponse()
- Specified by:
createResponsein interfaceOpenApiResponses
-
getItem
public OpenApiResponse getItem(String name)
Description copied from interface:MappedNodeGets a single item (indexed child) by name. Returns undefined if not found.- Specified by:
getItemin interfaceMappedNode<OpenApiResponse>
-
getItems
public List<OpenApiResponse> getItems()
Description copied from interface:MappedNodeReturns an array of all the child items.- Specified by:
getItemsin interfaceMappedNode<OpenApiResponse>
-
getItemNames
public List<String> getItemNames()
Description copied from interface:MappedNodeGets a list of the names of all indexed children.- Specified by:
getItemNamesin interfaceMappedNode<OpenApiResponse>
-
addItem
public void addItem(String name, OpenApiResponse item)
Description copied from interface:MappedNodeAdds a child item.- Specified by:
addItemin interfaceMappedNode<OpenApiResponse>
-
insertItem
public void insertItem(String name, OpenApiResponse item, int atIndex)
Description copied from interface:MappedNodeInserts a child item.- Specified by:
insertItemin interfaceMappedNode<OpenApiResponse>
-
removeItem
public OpenApiResponse removeItem(String name)
Description copied from interface:MappedNodeRemoves a child item by name and returns the deleted child or undefined if there wasn't one.- Specified by:
removeItemin interfaceMappedNode<OpenApiResponse>
-
clearItems
public void clearItems()
Description copied from interface:MappedNodeRemoves all children.- Specified by:
clearItemsin interfaceMappedNode<OpenApiResponse>
-
getExtensions
public Map<String,com.fasterxml.jackson.databind.JsonNode> getExtensions()
- Specified by:
getExtensionsin interfaceExtensible- Specified by:
getExtensionsin interfaceOpenApi31Responses
-
addExtension
public void addExtension(String name, com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
addExtensionin interfaceExtensible- Specified by:
addExtensionin interfaceOpenApi31Responses
-
clearExtensions
public void clearExtensions()
- Specified by:
clearExtensionsin interfaceExtensible- Specified by:
clearExtensionsin interfaceOpenApi31Responses
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceExtensible- Specified by:
removeExtensionin interfaceOpenApi31Responses
-
insertExtension
public void insertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)
- Specified by:
insertExtensionin interfaceExtensible- Specified by:
insertExtensionin interfaceOpenApi31Responses
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClonein interfaceNode
-
-