Class AsyncApi23BindingImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.asyncapi.v23.AsyncApi23BindingImpl
-
- All Implemented Interfaces:
AsyncApiBinding,AsyncApiExtensible,AsyncApi23Binding,AsyncApi23Extensible,Extensible,MappedNode<com.fasterxml.jackson.databind.JsonNode>,Node,Visitable
public class AsyncApi23BindingImpl extends NodeImpl implements AsyncApi23Binding
-
-
Constructor Summary
Constructors Constructor Description AsyncApi23BindingImpl()
-
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, com.fasterxml.jackson.databind.JsonNode item)Adds a child item.voidclearExtensions()voidclearItems()Removes all children.NodeemptyClone()Map<String,com.fasterxml.jackson.databind.JsonNode>getExtensions()com.fasterxml.jackson.databind.JsonNodegetItem(String name)Gets a single item (indexed child) by name.List<String>getItemNames()Gets a list of the names of all indexed children.List<com.fasterxml.jackson.databind.JsonNode>getItems()Returns an array of all the child items.voidinsertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)voidinsertItem(String name, com.fasterxml.jackson.databind.JsonNode item, int atIndex)Inserts a child item.voidremoveExtension(String name)com.fasterxml.jackson.databind.JsonNoderemoveItem(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
-
getItem
public com.fasterxml.jackson.databind.JsonNode getItem(String name)
Description copied from interface:MappedNodeGets a single item (indexed child) by name. Returns undefined if not found.- Specified by:
getItemin interfaceMappedNode<com.fasterxml.jackson.databind.JsonNode>
-
getItems
public List<com.fasterxml.jackson.databind.JsonNode> getItems()
Description copied from interface:MappedNodeReturns an array of all the child items.- Specified by:
getItemsin interfaceMappedNode<com.fasterxml.jackson.databind.JsonNode>
-
getItemNames
public List<String> getItemNames()
Description copied from interface:MappedNodeGets a list of the names of all indexed children.- Specified by:
getItemNamesin interfaceMappedNode<com.fasterxml.jackson.databind.JsonNode>
-
addItem
public void addItem(String name, com.fasterxml.jackson.databind.JsonNode item)
Description copied from interface:MappedNodeAdds a child item.- Specified by:
addItemin interfaceMappedNode<com.fasterxml.jackson.databind.JsonNode>
-
insertItem
public void insertItem(String name, com.fasterxml.jackson.databind.JsonNode item, int atIndex)
Description copied from interface:MappedNodeInserts a child item.- Specified by:
insertItemin interfaceMappedNode<com.fasterxml.jackson.databind.JsonNode>
-
removeItem
public com.fasterxml.jackson.databind.JsonNode 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<com.fasterxml.jackson.databind.JsonNode>
-
clearItems
public void clearItems()
Description copied from interface:MappedNodeRemoves all children.- Specified by:
clearItemsin interfaceMappedNode<com.fasterxml.jackson.databind.JsonNode>
-
getExtensions
public Map<String,com.fasterxml.jackson.databind.JsonNode> getExtensions()
- Specified by:
getExtensionsin interfaceAsyncApi23Binding- Specified by:
getExtensionsin interfaceExtensible
-
addExtension
public void addExtension(String name, com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
addExtensionin interfaceAsyncApi23Binding- Specified by:
addExtensionin interfaceExtensible
-
clearExtensions
public void clearExtensions()
- Specified by:
clearExtensionsin interfaceAsyncApi23Binding- Specified by:
clearExtensionsin interfaceExtensible
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceAsyncApi23Binding- Specified by:
removeExtensionin interfaceExtensible
-
insertExtension
public void insertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)
- Specified by:
insertExtensionin interfaceAsyncApi23Binding- Specified by:
insertExtensionin interfaceExtensible
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClonein interfaceNode
-
-