Class OpenApi31MediaTypeImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.openapi.v31.OpenApi31MediaTypeImpl
-
- All Implemented Interfaces:
Extensible,Node,OpenApiExamplesParent,OpenApiExtensible,OpenApiMediaType,OpenApi31ExamplesParent,OpenApi31Extensible,OpenApi31MediaType,Visitable
public class OpenApi31MediaTypeImpl extends NodeImpl implements OpenApi31MediaType
-
-
Constructor Summary
Constructors Constructor Description OpenApi31MediaTypeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)voidaddEncoding(String name, OpenApiEncoding value)voidaddExample(String name, OpenApiExample value)voidaddExtension(String name, com.fasterxml.jackson.databind.JsonNode value)voidclearEncoding()voidclearExamples()voidclearExtensions()OpenApi31EncodingcreateEncoding()OpenApi31ExamplecreateExample()OpenApi31SchemacreateSchema()NodeemptyClone()Map<String,OpenApiEncoding>getEncoding()com.fasterxml.jackson.databind.JsonNodegetExample()Map<String,OpenApiExample>getExamples()Map<String,com.fasterxml.jackson.databind.JsonNode>getExtensions()OpenApiSchemagetSchema()voidinsertEncoding(String name, OpenApiEncoding value, int atIndex)voidinsertExample(String name, OpenApiExample value, int atIndex)voidinsertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)voidremoveEncoding(String name)voidremoveExample(String name)voidremoveExtension(String name)voidsetExample(com.fasterxml.jackson.databind.JsonNode value)voidsetSchema(OpenApiSchema value)-
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
-
getSchema
public OpenApiSchema getSchema()
- Specified by:
getSchemain interfaceOpenApiMediaType
-
setSchema
public void setSchema(OpenApiSchema value)
- Specified by:
setSchemain interfaceOpenApiMediaType
-
createSchema
public OpenApi31Schema createSchema()
- Specified by:
createSchemain interfaceOpenApiMediaType
-
getExample
public com.fasterxml.jackson.databind.JsonNode getExample()
- Specified by:
getExamplein interfaceOpenApiMediaType
-
setExample
public void setExample(com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
setExamplein interfaceOpenApiMediaType
-
createExample
public OpenApi31Example createExample()
- Specified by:
createExamplein interfaceOpenApi31MediaType- Specified by:
createExamplein interfaceOpenApiExamplesParent
-
getExamples
public Map<String,OpenApiExample> getExamples()
- Specified by:
getExamplesin interfaceOpenApi31MediaType- Specified by:
getExamplesin interfaceOpenApiExamplesParent
-
addExample
public void addExample(String name, OpenApiExample value)
- Specified by:
addExamplein interfaceOpenApi31MediaType- Specified by:
addExamplein interfaceOpenApiExamplesParent
-
clearExamples
public void clearExamples()
- Specified by:
clearExamplesin interfaceOpenApi31MediaType- Specified by:
clearExamplesin interfaceOpenApiExamplesParent
-
removeExample
public void removeExample(String name)
- Specified by:
removeExamplein interfaceOpenApi31MediaType- Specified by:
removeExamplein interfaceOpenApiExamplesParent
-
insertExample
public void insertExample(String name, OpenApiExample value, int atIndex)
- Specified by:
insertExamplein interfaceOpenApi31MediaType- Specified by:
insertExamplein interfaceOpenApiExamplesParent
-
createEncoding
public OpenApi31Encoding createEncoding()
- Specified by:
createEncodingin interfaceOpenApiMediaType
-
getEncoding
public Map<String,OpenApiEncoding> getEncoding()
- Specified by:
getEncodingin interfaceOpenApiMediaType
-
addEncoding
public void addEncoding(String name, OpenApiEncoding value)
- Specified by:
addEncodingin interfaceOpenApiMediaType
-
clearEncoding
public void clearEncoding()
- Specified by:
clearEncodingin interfaceOpenApiMediaType
-
removeEncoding
public void removeEncoding(String name)
- Specified by:
removeEncodingin interfaceOpenApiMediaType
-
insertEncoding
public void insertEncoding(String name, OpenApiEncoding value, int atIndex)
- Specified by:
insertEncodingin interfaceOpenApiMediaType
-
getExtensions
public Map<String,com.fasterxml.jackson.databind.JsonNode> getExtensions()
- Specified by:
getExtensionsin interfaceExtensible- Specified by:
getExtensionsin interfaceOpenApi31MediaType
-
addExtension
public void addExtension(String name, com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
addExtensionin interfaceExtensible- Specified by:
addExtensionin interfaceOpenApi31MediaType
-
clearExtensions
public void clearExtensions()
- Specified by:
clearExtensionsin interfaceExtensible- Specified by:
clearExtensionsin interfaceOpenApi31MediaType
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceExtensible- Specified by:
removeExtensionin interfaceOpenApi31MediaType
-
insertExtension
public void insertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)
- Specified by:
insertExtensionin interfaceExtensible- Specified by:
insertExtensionin interfaceOpenApi31MediaType
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClonein interfaceNode
-
-