Class OpenApi30MediaTypeImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.NodeImpl
-
- io.apicurio.datamodels.models.openapi.v30.OpenApi30MediaTypeImpl
-
- All Implemented Interfaces:
Extensible,Node,OpenApiExamplesParent,OpenApiExtensible,OpenApiMediaType,OpenApi30ExamplesParent,OpenApi30Extensible,OpenApi30MediaType,Visitable
public class OpenApi30MediaTypeImpl extends NodeImpl implements OpenApi30MediaType
-
-
Constructor Summary
Constructors Constructor Description OpenApi30MediaTypeImpl()
-
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()OpenApi30EncodingcreateEncoding()OpenApi30ExamplecreateExample()OpenApi30SchemacreateSchema()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 OpenApi30Schema 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 OpenApi30Example createExample()
- Specified by:
createExamplein interfaceOpenApi30MediaType- Specified by:
createExamplein interfaceOpenApiExamplesParent
-
getExamples
public Map<String,OpenApiExample> getExamples()
- Specified by:
getExamplesin interfaceOpenApi30MediaType- Specified by:
getExamplesin interfaceOpenApiExamplesParent
-
addExample
public void addExample(String name, OpenApiExample value)
- Specified by:
addExamplein interfaceOpenApi30MediaType- Specified by:
addExamplein interfaceOpenApiExamplesParent
-
clearExamples
public void clearExamples()
- Specified by:
clearExamplesin interfaceOpenApi30MediaType- Specified by:
clearExamplesin interfaceOpenApiExamplesParent
-
removeExample
public void removeExample(String name)
- Specified by:
removeExamplein interfaceOpenApi30MediaType- Specified by:
removeExamplein interfaceOpenApiExamplesParent
-
insertExample
public void insertExample(String name, OpenApiExample value, int atIndex)
- Specified by:
insertExamplein interfaceOpenApi30MediaType- Specified by:
insertExamplein interfaceOpenApiExamplesParent
-
createEncoding
public OpenApi30Encoding 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 interfaceOpenApi30MediaType
-
addExtension
public void addExtension(String name, com.fasterxml.jackson.databind.JsonNode value)
- Specified by:
addExtensionin interfaceExtensible- Specified by:
addExtensionin interfaceOpenApi30MediaType
-
clearExtensions
public void clearExtensions()
- Specified by:
clearExtensionsin interfaceExtensible- Specified by:
clearExtensionsin interfaceOpenApi30MediaType
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceExtensible- Specified by:
removeExtensionin interfaceOpenApi30MediaType
-
insertExtension
public void insertExtension(String name, com.fasterxml.jackson.databind.JsonNode value, int atIndex)
- Specified by:
insertExtensionin interfaceExtensible- Specified by:
insertExtensionin interfaceOpenApi30MediaType
-
emptyClone
public Node emptyClone()
- Specified by:
emptyClonein interfaceNode
-
-