Class AsyncApi20ChannelsImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.asyncapi.v20.AsyncApi20ChannelsImpl
-
- All Implemented Interfaces:
AsyncApiChannels,AsyncApi20Channels,MappedNode<AsyncApi20ChannelItem>,Node,Visitable
public class AsyncApi20ChannelsImpl extends NodeImpl implements AsyncApi20Channels
-
-
Constructor Summary
Constructors Constructor Description AsyncApi20ChannelsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)voidaddItem(String name, AsyncApi20ChannelItem item)Adds a child item.voidclearItems()Removes all children.AsyncApi20ChannelItemcreateChannelItem()NodeemptyClone()AsyncApi20ChannelItemgetItem(String name)Gets a single item (indexed child) by name.List<String>getItemNames()Gets a list of the names of all indexed children.List<AsyncApi20ChannelItem>getItems()Returns an array of all the child items.voidinsertItem(String name, AsyncApi20ChannelItem item, int atIndex)Inserts a child item.AsyncApi20ChannelItemremoveItem(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 AsyncApi20ChannelItem getItem(String name)
Description copied from interface:MappedNodeGets a single item (indexed child) by name. Returns undefined if not found.- Specified by:
getItemin interfaceMappedNode<AsyncApi20ChannelItem>
-
getItems
public List<AsyncApi20ChannelItem> getItems()
Description copied from interface:MappedNodeReturns an array of all the child items.- Specified by:
getItemsin interfaceMappedNode<AsyncApi20ChannelItem>
-
getItemNames
public List<String> getItemNames()
Description copied from interface:MappedNodeGets a list of the names of all indexed children.- Specified by:
getItemNamesin interfaceMappedNode<AsyncApi20ChannelItem>
-
addItem
public void addItem(String name, AsyncApi20ChannelItem item)
Description copied from interface:MappedNodeAdds a child item.- Specified by:
addItemin interfaceMappedNode<AsyncApi20ChannelItem>
-
insertItem
public void insertItem(String name, AsyncApi20ChannelItem item, int atIndex)
Description copied from interface:MappedNodeInserts a child item.- Specified by:
insertItemin interfaceMappedNode<AsyncApi20ChannelItem>
-
removeItem
public AsyncApi20ChannelItem 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<AsyncApi20ChannelItem>
-
clearItems
public void clearItems()
Description copied from interface:MappedNodeRemoves all children.- Specified by:
clearItemsin interfaceMappedNode<AsyncApi20ChannelItem>
-
createChannelItem
public AsyncApi20ChannelItem createChannelItem()
- Specified by:
createChannelItemin interfaceAsyncApi20Channels
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClonein interfaceNode
-
-