public abstract class OasPaths extends ExtensibleNode implements IIndexedNode<OasPathItem>
_extensions_attributes, _extraProperties, _modelId, _ownerDocument, _parent, _validationProblems| Constructor and Description |
|---|
OasPaths() |
| 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,
OasPathItem item)
Adds a child item.
|
OasPathItem |
addPathItem(String name,
OasPathItem pathItem)
Adds a path item.
|
abstract OasPathItem |
createPathItem(String path)
Creates an OAS path item object.
|
OasPathItem |
deleteItem(String name)
Deletes a child item by name and returns the deleted child or undefined if there wasn't one.
|
OasPathItem |
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<OasPathItem> |
getItems()
Returns an array of all the child items.
|
OasPathItem |
getPathItem(String name)
Returns a single path item by name.
|
List<String> |
getPathItemNames()
Gets a list of all the path names.
|
List<OasPathItem> |
getPathItems()
Returns an array of all the path items.
|
OasPathItem |
removePathItem(String path)
Removes a single path item child model by name.
|
addExtension, clearExtensions, createExtension, getExtension, getExtensions, isExtensible, removeExtensionaddExtraProperty, addValidationProblem, clearAttributes, clearValidationProblems, getAttribute, getAttributeNames, getExtraProperty, getExtraPropertyNames, getValidationProblemCodes, getValidationProblems, getValidationProblemsFor, hasExtraProperties, modelId, ownerDocument, parent, removeExtraProperty, setAttributepublic void accept(IVisitor visitor)
IVisitableaccept in interface IVisitableaccept in class NodeNode.accept(io.apicurio.datamodels.core.visitors.IVisitor)public OasPathItem getPathItem(String name)
name - public List<OasPathItem> getPathItems()
public OasPathItem addPathItem(String name, OasPathItem pathItem)
name - pathItem - public OasPathItem removePathItem(String path)
path - public abstract OasPathItem createPathItem(String path)
path - public void addItem(String name, OasPathItem item)
IIndexedNodeaddItem in interface IIndexedNode<OasPathItem>IIndexedNode.addItem(java.lang.String, io.apicurio.datamodels.core.models.Node)public OasPathItem deleteItem(String name)
IIndexedNodedeleteItem in interface IIndexedNode<OasPathItem>IIndexedNode.deleteItem(java.lang.String)public OasPathItem getItem(String name)
IIndexedNodegetItem in interface IIndexedNode<OasPathItem>IIndexedNode.getItem(java.lang.String)public List<String> getItemNames()
IIndexedNodegetItemNames in interface IIndexedNode<OasPathItem>IIndexedNode.getItemNames()public List<OasPathItem> getItems()
IIndexedNodegetItems in interface IIndexedNode<OasPathItem>IIndexedNode.getItems()Copyright © 2019 Red Hat. All rights reserved.