Class OpenApi30PathsImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.openapi.v30.OpenApi30PathsImpl
-
- All Implemented Interfaces:
Extensible,MappedNode<OpenApiPathItem>,Node,OpenApiExtensible,OpenApiPaths,OpenApi30Extensible,OpenApi30Paths,Visitable
public class OpenApi30PathsImpl extends NodeImpl implements OpenApi30Paths
-
-
Constructor Summary
Constructors Constructor Description OpenApi30PathsImpl()
-
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.OpenApi30PathItemcreatePathItem()NodeemptyClone()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.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.-
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
-
getExtensions
public Map<String,com.fasterxml.jackson.databind.JsonNode> getExtensions()
- Specified by:
getExtensionsin interfaceExtensible- Specified by:
getExtensionsin interfaceOpenApi30Paths
-
addExtension
public void addExtension(String name, com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
addExtensionin interfaceExtensible- Specified by:
addExtensionin interfaceOpenApi30Paths
-
clearExtensions
public void clearExtensions()
- Specified by:
clearExtensionsin interfaceExtensible- Specified by:
clearExtensionsin interfaceOpenApi30Paths
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceExtensible- Specified by:
removeExtensionin interfaceOpenApi30Paths
-
insertExtension
public void insertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)
- Specified by:
insertExtensionin interfaceExtensible- Specified by:
insertExtensionin interfaceOpenApi30Paths
-
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 OpenApi30PathItem createPathItem()
- Specified by:
createPathItemin interfaceOpenApiPaths
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClonein interfaceNode
-
-