Class AsyncApi22ChannelsImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.asyncapi.v22.AsyncApi22ChannelsImpl
-
- All Implemented Interfaces:
AsyncApiChannels
,AsyncApi22Channels
,MappedNode<AsyncApi22ChannelItem>
,Node
,Visitable
public class AsyncApi22ChannelsImpl extends NodeImpl implements AsyncApi22Channels
-
-
Constructor Summary
Constructors Constructor Description AsyncApi22ChannelsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
void
addItem(String name, AsyncApi22ChannelItem item)
Adds a child item.AsyncApi22ChannelItem
createChannelItem()
Node
emptyClone()
AsyncApi22ChannelItem
getItem(String name)
Gets a single item (indexed child) by name.List<String>
getItemNames()
Gets a list of the names of all indexed children.List<AsyncApi22ChannelItem>
getItems()
Returns an array of all the child items.AsyncApi22ChannelItem
removeItem(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
addExtraProperty, attach, clearNodeAttributes, getExtraProperty, getExtraPropertyNames, getNodeAttribute, getNodeAttributeNames, hasExtraProperties, isAttached, isEntity, isEntityList, isEntityMap, modelId, parent, 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, modelId, parent, removeExtraProperty, root, setNodeAttribute
-
-
-
-
Method Detail
-
getItem
public AsyncApi22ChannelItem getItem(String name)
Description copied from interface:MappedNode
Gets a single item (indexed child) by name. Returns undefined if not found.- Specified by:
getItem
in interfaceMappedNode<AsyncApi22ChannelItem>
-
getItems
public List<AsyncApi22ChannelItem> getItems()
Description copied from interface:MappedNode
Returns an array of all the child items.- Specified by:
getItems
in interfaceMappedNode<AsyncApi22ChannelItem>
-
getItemNames
public List<String> getItemNames()
Description copied from interface:MappedNode
Gets a list of the names of all indexed children.- Specified by:
getItemNames
in interfaceMappedNode<AsyncApi22ChannelItem>
-
addItem
public void addItem(String name, AsyncApi22ChannelItem item)
Description copied from interface:MappedNode
Adds a child item.- Specified by:
addItem
in interfaceMappedNode<AsyncApi22ChannelItem>
-
removeItem
public AsyncApi22ChannelItem removeItem(String name)
Description copied from interface:MappedNode
Removes a child item by name and returns the deleted child or undefined if there wasn't one.- Specified by:
removeItem
in interfaceMappedNode<AsyncApi22ChannelItem>
-
createChannelItem
public AsyncApi22ChannelItem createChannelItem()
- Specified by:
createChannelItem
in interfaceAsyncApi22Channels
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClone
in interfaceNode
-
-