Class OpenApi30ResponsesImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.openapi.v30.OpenApi30ResponsesImpl
-
- All Implemented Interfaces:
Extensible,MappedNode<OpenApiResponse>,Node,OpenApiExtensible,OpenApiReferenceable,OpenApiResponses,OpenApi30Extensible,OpenApi30Referenceable,OpenApi30Responses,Referenceable,Visitable
public class OpenApi30ResponsesImpl extends NodeImpl implements OpenApi30Responses
-
-
Constructor Summary
Constructors Constructor Description OpenApi30ResponsesImpl()
-
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.OpenApi30ResponsecreateResponse()NodeemptyClone()Stringget$ref()OpenApiResponsegetDefault()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.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)-
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 interfaceOpenApi30Responses- Specified by:
get$refin interfaceReferenceable
-
set$ref
public void set$ref(String value)
- Specified by:
set$refin interfaceOpenApi30Responses- Specified by:
set$refin interfaceReferenceable
-
getDefault
public OpenApiResponse getDefault()
- Specified by:
getDefaultin interfaceOpenApiResponses
-
setDefault
public void setDefault(OpenApiResponse value)
- Specified by:
setDefaultin interfaceOpenApiResponses
-
createResponse
public OpenApi30Response 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 interfaceOpenApi30Responses
-
addExtension
public void addExtension(String name, com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
addExtensionin interfaceExtensible- Specified by:
addExtensionin interfaceOpenApi30Responses
-
clearExtensions
public void clearExtensions()
- Specified by:
clearExtensionsin interfaceExtensible- Specified by:
clearExtensionsin interfaceOpenApi30Responses
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceExtensible- Specified by:
removeExtensionin interfaceOpenApi30Responses
-
insertExtension
public void insertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)
- Specified by:
insertExtensionin interfaceExtensible- Specified by:
insertExtensionin interfaceOpenApi30Responses
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClonein interfaceNode
-
-