Class OpenApi20ScopesImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.openapi.v20.OpenApi20ScopesImpl
-
- All Implemented Interfaces:
Extensible,MappedNode<String>,Node,OpenApiExtensible,OpenApi20Extensible,OpenApi20Scopes,Visitable
public class OpenApi20ScopesImpl extends NodeImpl implements OpenApi20Scopes
-
-
Constructor Summary
Constructors Constructor Description OpenApi20ScopesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)voidaddExtension(String name, com.fasterxml.jackson.databind.JsonNode value)voidaddItem(String name, String item)Adds a child item.voidclearExtensions()voidclearItems()Removes all children.NodeemptyClone()Map<String,com.fasterxml.jackson.databind.JsonNode>getExtensions()StringgetItem(String name)Gets a single item (indexed child) by name.List<String>getItemNames()Gets a list of the names of all indexed children.List<String>getItems()Returns an array of all the child items.voidinsertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)voidinsertItem(String name, String item, int atIndex)Inserts a child item.voidremoveExtension(String name)StringremoveItem(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
_setMapPropertyName, _setParentPropertyName, _setParentPropertyType, addExtraProperty, attach, clearNodeAttributes, getExtraProperty, getExtraPropertyNames, getNodeAttribute, getNodeAttributeNames, hasExtraProperties, isAttached, isEntity, isEntityList, isEntityMap, mapPropertyName, modelId, parent, parentPropertyName, parentPropertyType, 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, mapPropertyName, modelId, parent, parentPropertyName, parentPropertyType, removeExtraProperty, root, setNodeAttribute
-
-
-
-
Method Detail
-
getItem
public String getItem(String name)
Description copied from interface:MappedNodeGets a single item (indexed child) by name. Returns undefined if not found.- Specified by:
getItemin interfaceMappedNode<String>
-
getItems
public List<String> getItems()
Description copied from interface:MappedNodeReturns an array of all the child items.- Specified by:
getItemsin interfaceMappedNode<String>
-
getItemNames
public List<String> getItemNames()
Description copied from interface:MappedNodeGets a list of the names of all indexed children.- Specified by:
getItemNamesin interfaceMappedNode<String>
-
addItem
public void addItem(String name, String item)
Description copied from interface:MappedNodeAdds a child item.- Specified by:
addItemin interfaceMappedNode<String>
-
insertItem
public void insertItem(String name, String item, int atIndex)
Description copied from interface:MappedNodeInserts a child item.- Specified by:
insertItemin interfaceMappedNode<String>
-
removeItem
public String removeItem(String name)
Description copied from interface:MappedNodeRemoves a child item by name and returns the deleted child or undefined if there wasn't one.- Specified by:
removeItemin interfaceMappedNode<String>
-
clearItems
public void clearItems()
Description copied from interface:MappedNodeRemoves all children.- Specified by:
clearItemsin interfaceMappedNode<String>
-
getExtensions
public Map<String,com.fasterxml.jackson.databind.JsonNode> getExtensions()
- Specified by:
getExtensionsin interfaceExtensible- Specified by:
getExtensionsin interfaceOpenApi20Scopes
-
addExtension
public void addExtension(String name, com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
addExtensionin interfaceExtensible- Specified by:
addExtensionin interfaceOpenApi20Scopes
-
clearExtensions
public void clearExtensions()
- Specified by:
clearExtensionsin interfaceExtensible- Specified by:
clearExtensionsin interfaceOpenApi20Scopes
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceExtensible- Specified by:
removeExtensionin interfaceOpenApi20Scopes
-
insertExtension
public void insertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)
- Specified by:
insertExtensionin interfaceExtensible- Specified by:
insertExtensionin interfaceOpenApi20Scopes
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClonein interfaceNode
-
-