Class OpenApi31CallbackImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.openapi.v31.OpenApi31CallbackImpl
-
- All Implemented Interfaces:
Extensible,MappedNode<OpenApiPathItem>,Node,OpenApiCallback,OpenApiExtensible,OpenApiReferenceable,OpenApi31Callback,OpenApi31Extensible,OpenApi31Referenceable,Referenceable,Visitable
public class OpenApi31CallbackImpl extends NodeImpl implements OpenApi31Callback
-
-
Constructor Summary
Constructors Constructor Description OpenApi31CallbackImpl()
-
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, OpenApiPathItem item)Adds a child item.voidclearExtensions()voidclearItems()Removes all children.OpenApi31PathItemcreatePathItem()NodeemptyClone()Stringget$ref()StringgetDescription()Map<String,com.fasterxml.jackson.databind.JsonNode>getExtensions()OpenApiPathItemgetItem(String name)Gets a single item (indexed child) by name.List<String>getItemNames()Gets a list of the names of all indexed children.List<OpenApiPathItem>getItems()Returns an array of all the child items.StringgetSummary()voidinsertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)voidinsertItem(String name, OpenApiPathItem item, int atIndex)Inserts a child item.voidremoveExtension(String name)OpenApiPathItemremoveItem(String name)Removes a child item by name and returns the deleted child or undefined if there wasn't one.voidset$ref(String 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 interfaceOpenApi31Callback- Specified by:
get$refin interfaceReferenceable
-
set$ref
public void set$ref(String value)
- Specified by:
set$refin interfaceOpenApi31Callback- Specified by:
set$refin interfaceReferenceable
-
getSummary
public String getSummary()
- Specified by:
getSummaryin interfaceOpenApi31Callback- Specified by:
getSummaryin interfaceOpenApi31Referenceable
-
setSummary
public void setSummary(String value)
- Specified by:
setSummaryin interfaceOpenApi31Callback- Specified by:
setSummaryin interfaceOpenApi31Referenceable
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceOpenApi31Callback- Specified by:
getDescriptionin interfaceOpenApi31Referenceable
-
setDescription
public void setDescription(String value)
- Specified by:
setDescriptionin interfaceOpenApi31Callback- Specified by:
setDescriptionin interfaceOpenApi31Referenceable
-
getItem
public OpenApiPathItem getItem(String name)
Description copied from interface:MappedNodeGets a single item (indexed child) by name. Returns undefined if not found.- Specified by:
getItemin interfaceMappedNode<OpenApiPathItem>
-
getItems
public List<OpenApiPathItem> getItems()
Description copied from interface:MappedNodeReturns an array of all the child items.- Specified by:
getItemsin interfaceMappedNode<OpenApiPathItem>
-
getItemNames
public List<String> getItemNames()
Description copied from interface:MappedNodeGets a list of the names of all indexed children.- Specified by:
getItemNamesin interfaceMappedNode<OpenApiPathItem>
-
addItem
public void addItem(String name, OpenApiPathItem item)
Description copied from interface:MappedNodeAdds a child item.- Specified by:
addItemin interfaceMappedNode<OpenApiPathItem>
-
insertItem
public void insertItem(String name, OpenApiPathItem item, int atIndex)
Description copied from interface:MappedNodeInserts a child item.- Specified by:
insertItemin interfaceMappedNode<OpenApiPathItem>
-
removeItem
public OpenApiPathItem 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<OpenApiPathItem>
-
clearItems
public void clearItems()
Description copied from interface:MappedNodeRemoves all children.- Specified by:
clearItemsin interfaceMappedNode<OpenApiPathItem>
-
createPathItem
public OpenApi31PathItem createPathItem()
- Specified by:
createPathItemin interfaceOpenApiCallback
-
getExtensions
public Map<String,com.fasterxml.jackson.databind.JsonNode> getExtensions()
- Specified by:
getExtensionsin interfaceExtensible- Specified by:
getExtensionsin interfaceOpenApi31Callback
-
addExtension
public void addExtension(String name, com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
addExtensionin interfaceExtensible- Specified by:
addExtensionin interfaceOpenApi31Callback
-
clearExtensions
public void clearExtensions()
- Specified by:
clearExtensionsin interfaceExtensible- Specified by:
clearExtensionsin interfaceOpenApi31Callback
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceExtensible- Specified by:
removeExtensionin interfaceOpenApi31Callback
-
insertExtension
public void insertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)
- Specified by:
insertExtensionin interfaceExtensible- Specified by:
insertExtensionin interfaceOpenApi31Callback
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClonein interfaceNode
-
-