public class Oas30Callback extends ExtensibleNode implements IIndexedNode<Oas30CallbackPathItem>, INamed, IReferenceNode
Modifier and Type | Field and Description |
---|---|
String |
$ref |
_extensions
_attributes, _extraProperties, _modelId, _ownerDocument, _parent, _validationProblems
Constructor and Description |
---|
Oas30Callback(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IVisitor visitor)
Called to accept a visitor onto a visitable data model instance.
|
void |
addItem(String name,
Oas30CallbackPathItem item)
Adds a child item.
|
Oas30CallbackPathItem |
addPathItem(String name,
Oas30CallbackPathItem pathItem)
Adds a path item.
|
Oas30CallbackPathItem |
createPathItem(String path)
Creates an OAS path item object.
|
Oas30CallbackPathItem |
deleteItem(String name)
Deletes a child item by name and returns the deleted child or undefined if there wasn't one.
|
Oas30CallbackPathItem |
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<Oas30CallbackPathItem> |
getItems()
Returns an array of all the child items.
|
String |
getName()
Gets the definition name.
|
Oas30CallbackPathItem |
getPathItem(String name)
Returns a single path item by name.
|
List<String> |
getPathItemNames()
Gets a list of all the path names.
|
List<Oas30CallbackPathItem> |
getPathItems()
Returns an array of all the path items.
|
Oas30CallbackPathItem |
removePathItem(String path)
Removes a single path item child model by name.
|
void |
rename(String newName)
Renames the definition.
|
addExtension, clearExtensions, createExtension, getExtension, getExtensions, isExtensible, removeExtension
addExtraProperty, addValidationProblem, clearAttributes, clearValidationProblems, getAttribute, getAttributeNames, getExtraProperty, getExtraPropertyNames, getValidationProblemCodes, getValidationProblems, getValidationProblemsFor, hasExtraProperties, modelId, ownerDocument, parent, removeExtraProperty, setAttribute
public String $ref
public Oas30Callback(String name)
name
- public void accept(IVisitor visitor)
IVisitable
accept
in interface IVisitable
accept
in class Node
Node.accept(io.apicurio.datamodels.core.visitors.IVisitor)
public String getName()
INamed
getName
in interface INamed
INamed.getName()
public void rename(String newName)
INamed
rename
in interface INamed
INamed.rename(java.lang.String)
public Oas30CallbackPathItem getPathItem(String name)
name
- public List<Oas30CallbackPathItem> getPathItems()
public Oas30CallbackPathItem addPathItem(String name, Oas30CallbackPathItem pathItem)
name
- pathItem
- public Oas30CallbackPathItem removePathItem(String path)
path
- public Oas30CallbackPathItem createPathItem(String path)
path
- public Oas30CallbackPathItem getItem(String name)
IIndexedNode
getItem
in interface IIndexedNode<Oas30CallbackPathItem>
IIndexedNode.getItem(java.lang.String)
public List<Oas30CallbackPathItem> getItems()
IIndexedNode
getItems
in interface IIndexedNode<Oas30CallbackPathItem>
IIndexedNode.getItems()
public List<String> getItemNames()
IIndexedNode
getItemNames
in interface IIndexedNode<Oas30CallbackPathItem>
IIndexedNode.getItemNames()
public void addItem(String name, Oas30CallbackPathItem item)
IIndexedNode
addItem
in interface IIndexedNode<Oas30CallbackPathItem>
IIndexedNode.addItem(java.lang.String, io.apicurio.datamodels.core.models.Node)
public Oas30CallbackPathItem deleteItem(String name)
IIndexedNode
deleteItem
in interface IIndexedNode<Oas30CallbackPathItem>
IIndexedNode.deleteItem(java.lang.String)
Copyright © 2021 Red Hat. All rights reserved.