Package io.apicurio.datamodels.models
Interface MappedNode<T>
-
- All Known Subinterfaces:
AsyncApi20Binding,AsyncApi20Channels,AsyncApi20Parameters,AsyncApi20SecurityRequirement,AsyncApi20Servers,AsyncApi21Binding,AsyncApi21Channels,AsyncApi21Parameters,AsyncApi21SecurityRequirement,AsyncApi21Servers,AsyncApi22Binding,AsyncApi22Channels,AsyncApi22Parameters,AsyncApi22SecurityRequirement,AsyncApi22Servers,AsyncApi23Binding,AsyncApi23Channels,AsyncApi23Parameters,AsyncApi23SecurityRequirement,AsyncApi23Servers,AsyncApi24Binding,AsyncApi24Channels,AsyncApi24Parameters,AsyncApi24SecurityRequirement,AsyncApi24Servers,AsyncApi25Binding,AsyncApi25Channels,AsyncApi25Parameters,AsyncApi25SecurityRequirement,AsyncApi25Servers,AsyncApi26Binding,AsyncApi26Channels,AsyncApi26Parameters,AsyncApi26SecurityRequirement,AsyncApi26Servers,AsyncApi30Binding,AsyncApi30Channels,AsyncApi30Operations,AsyncApi30Parameters,AsyncApi30Servers,AsyncApiBinding,AsyncApiParameters,AsyncApiSecurityRequirement,AsyncApiServers,OpenApi20Definitions,OpenApi20Example,OpenApi20ParameterDefinitions,OpenApi20Paths,OpenApi20ResponseDefinitions,OpenApi20Responses,OpenApi20Scopes,OpenApi20SecurityDefinitions,OpenApi20SecurityRequirement,OpenApi30Callback,OpenApi30Paths,OpenApi30Responses,OpenApi30SecurityRequirement,OpenApi31Callback,OpenApi31Paths,OpenApi31Responses,OpenApi31SecurityRequirement,OpenApiCallback,OpenApiPaths,OpenApiResponses,OpenApiSecurityRequirement,SecurityRequirement
- All Known Implementing Classes:
AsyncApi20BindingImpl,AsyncApi20ChannelsImpl,AsyncApi20ParametersImpl,AsyncApi20SecurityRequirementImpl,AsyncApi20ServersImpl,AsyncApi21BindingImpl,AsyncApi21ChannelsImpl,AsyncApi21ParametersImpl,AsyncApi21SecurityRequirementImpl,AsyncApi21ServersImpl,AsyncApi22BindingImpl,AsyncApi22ChannelsImpl,AsyncApi22ParametersImpl,AsyncApi22SecurityRequirementImpl,AsyncApi22ServersImpl,AsyncApi23BindingImpl,AsyncApi23ChannelsImpl,AsyncApi23ParametersImpl,AsyncApi23SecurityRequirementImpl,AsyncApi23ServersImpl,AsyncApi24BindingImpl,AsyncApi24ChannelsImpl,AsyncApi24ParametersImpl,AsyncApi24SecurityRequirementImpl,AsyncApi24ServersImpl,AsyncApi25BindingImpl,AsyncApi25ChannelsImpl,AsyncApi25ParametersImpl,AsyncApi25SecurityRequirementImpl,AsyncApi25ServersImpl,AsyncApi26BindingImpl,AsyncApi26ChannelsImpl,AsyncApi26ParametersImpl,AsyncApi26SecurityRequirementImpl,AsyncApi26ServersImpl,AsyncApi30BindingImpl,AsyncApi30ChannelsImpl,AsyncApi30OperationsImpl,AsyncApi30ParametersImpl,AsyncApi30ServersImpl,OpenApi20DefinitionsImpl,OpenApi20ExampleImpl,OpenApi20ParameterDefinitionsImpl,OpenApi20PathsImpl,OpenApi20ResponseDefinitionsImpl,OpenApi20ResponsesImpl,OpenApi20ScopesImpl,OpenApi20SecurityDefinitionsImpl,OpenApi20SecurityRequirementImpl,OpenApi30CallbackImpl,OpenApi30PathsImpl,OpenApi30ResponsesImpl,OpenApi30SecurityRequirementImpl,OpenApi31CallbackImpl,OpenApi31PathsImpl,OpenApi31ResponsesImpl,OpenApi31SecurityRequirementImpl
public interface MappedNode<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddItem(String name, T item)Adds a child item.voidclearItems()Removes all children.TgetItem(String name)Gets a single item (indexed child) by name.List<String>getItemNames()Gets a list of the names of all indexed children.List<T>getItems()Returns an array of all the child items.voidinsertItem(String name, T item, int atIndex)Inserts a child item.TremoveItem(String name)Removes a child item by name and returns the deleted child or undefined if there wasn't one.
-
-
-
Method Detail
-
getItem
T getItem(String name)
Gets a single item (indexed child) by name. Returns undefined if not found.- Parameters:
name-
-
insertItem
void insertItem(String name, T item, int atIndex)
Inserts a child item.- Parameters:
name-item-atIndex-
-
removeItem
T removeItem(String name)
Removes a child item by name and returns the deleted child or undefined if there wasn't one.- Parameters:
name-
-
clearItems
void clearItems()
Removes all children.
-
-