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, removeExtension
addExtraProperty, addValidationProblem, attachToParent, clearAttributes, clearValidationProblems, getAttribute, getAttributeNames, getExtraProperty, getExtraPropertyNames, getValidationProblemCodes, getValidationProblems, getValidationProblemsFor, hasExtraProperties, isAttached, modelId, ownerDocument, parent, removeExtraProperty, setAttribute
public void accept(IVisitor visitor)
IVisitable
accept
in interface IVisitable
accept
in class Node
Node.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)
IIndexedNode
addItem
in interface IIndexedNode<OasPathItem>
IIndexedNode.addItem(java.lang.String, io.apicurio.datamodels.core.models.Node)
public OasPathItem deleteItem(String name)
IIndexedNode
deleteItem
in interface IIndexedNode<OasPathItem>
IIndexedNode.deleteItem(java.lang.String)
public OasPathItem getItem(String name)
IIndexedNode
getItem
in interface IIndexedNode<OasPathItem>
IIndexedNode.getItem(java.lang.String)
public List<String> getItemNames()
IIndexedNode
getItemNames
in interface IIndexedNode<OasPathItem>
IIndexedNode.getItemNames()
public List<OasPathItem> getItems()
IIndexedNode
getItems
in interface IIndexedNode<OasPathItem>
IIndexedNode.getItems()
Copyright © 2020 Red Hat. All rights reserved.