public class Oas30Parameter extends OasParameter implements IOas30MediaTypeParent, IExampleParent
Modifier and Type | Field and Description |
---|---|
Boolean |
allowReserved |
Map<String,Oas30MediaType> |
content |
Boolean |
deprecated |
Object |
example |
Map<String,Oas30Example> |
examples |
Boolean |
explode |
String |
style |
allowEmptyValue, in, required
$ref, description, name, schema
_extensions
_attributes, _extraProperties, _modelId, _ownerDocument, _parent, _validationProblems
Constructor and Description |
---|
Oas30Parameter()
Constructor.
|
Oas30Parameter(String named)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addExample(Oas30Example example)
Adds the Example to the map of examples.
|
void |
addMediaType(String name,
Oas30MediaType mediaType)
Adds a media type.
|
Oas30Example |
createExample(String name)
Creates a child Example model.
|
Oas30MediaType |
createMediaType(String name)
Creates a media type.
|
Schema |
createSchema() |
Oas30Example |
getExample(String name)
Gets a single example by name.
|
List<Oas30Example> |
getExamples()
Gets all examples.
|
Oas30MediaType |
getMediaType(String name)
Gets a single media type by name.
|
List<Oas30MediaType> |
getMediaTypes()
Gets a list of all media types.
|
Oas30Example |
removeExample(String name)
Removes an Example and returns it.
|
Oas30MediaType |
removeMediaType(String name)
Removes a single media type and returns it.
|
accept, getName, getReference, rename, setReference
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 Boolean deprecated
public String style
public Boolean explode
public Boolean allowReserved
public Object example
public Map<String,Oas30Example> examples
public Map<String,Oas30MediaType> content
public Oas30Parameter()
public Oas30Parameter(String named)
public Schema createSchema()
createSchema
in class Parameter
Parameter.createSchema()
public Oas30Example createExample(String name)
public void addExample(Oas30Example example)
example
- public Oas30Example removeExample(String name)
name
- public Oas30Example getExample(String name)
name
- public List<Oas30Example> getExamples()
public Oas30MediaType createMediaType(String name)
IOas30MediaTypeParent
createMediaType
in interface IOas30MediaTypeParent
IOas30MediaTypeParent.createMediaType(java.lang.String)
public void addMediaType(String name, Oas30MediaType mediaType)
IOas30MediaTypeParent
addMediaType
in interface IOas30MediaTypeParent
IOas30MediaTypeParent.addMediaType(java.lang.String, io.apicurio.datamodels.openapi.v3.models.Oas30MediaType)
public Oas30MediaType getMediaType(String name)
IOas30MediaTypeParent
getMediaType
in interface IOas30MediaTypeParent
IOas30MediaTypeParent.getMediaType(java.lang.String)
public Oas30MediaType removeMediaType(String name)
IOas30MediaTypeParent
removeMediaType
in interface IOas30MediaTypeParent
IOas30MediaTypeParent.removeMediaType(java.lang.String)
public List<Oas30MediaType> getMediaTypes()
IOas30MediaTypeParent
getMediaTypes
in interface IOas30MediaTypeParent
IOas30MediaTypeParent.getMediaTypes()
Copyright © 2020 Red Hat. All rights reserved.