Package io.openapiparser.model.v31
Class Parameter
- java.lang.Object
-
- io.openapiparser.Properties
-
- io.openapiparser.model.v31.Parameter
-
- All Implemented Interfaces:
Extensions,Reference
public class Parameter extends Properties implements Reference, Extensions
the Parameter object.See specification: 4.8.12 Parameter Object
-
-
Field Summary
-
Fields inherited from class io.openapiparser.Properties
bucket, context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleangetAllowEmptyValue()java.lang.BooleangetAllowReserved()java.util.Map<java.lang.String,MediaType>getContent()java.lang.BooleangetDeprecated()@Nullable java.lang.StringgetDescription()@Nullable java.lang.ObjectgetExample()java.util.Map<java.lang.String,Example>getExamples()java.lang.BooleangetExplode()java.util.Map<java.lang.String,java.lang.Object>getExtensions()map of all extension properties.java.lang.StringgetIn()java.lang.StringgetName()java.lang.StringgetRef()$ref value.ParametergetRefObject()java.lang.BooleangetRequired()@Nullable SchemagetSchema()java.lang.StringgetStyle()@Nullable java.lang.StringgetSummary()booleanisRef()check if this is a $ref object.-
Methods inherited from class io.openapiparser.Properties
getBooleanOrDefault, getBooleanOrFalse, getBooleanOrNull, getIntegerOrDefault, getIntegerOrNull, getMapObjectsOrEmpty, getMapObjectsOrEmpty, getMapSetStringsOrEmpty, getMapStringsOrEmpty, getNumberOrNull, getObjectOrNull, getObjectOrThrow, getObjectsOrEmpty, getRawValue, getRawValueOf, getRefObject, getRefObjectOrThrow, getStringOrNull, getStringOrThrow, getStringsOrEmpty, getStringsOrNull, getValueOf, hasProperty
-
-
-
-
Constructor Detail
-
Parameter
public Parameter(Context context, io.openapiprocessor.jsonschema.schema.Bucket bucket)
-
-
Method Detail
-
isRef
public boolean isRef()
check if this is a $ref object.
-
getRef
public java.lang.String getRef()
$ref value. Should be guarded byReference.isRef(). Throws ifReference.isRef()is false.
-
getRefObject
public Parameter getRefObject()
-
getSummary
public @Nullable java.lang.String getSummary()
- Specified by:
getSummaryin interfaceReference
-
getName
@Required public java.lang.String getName()
-
getIn
@Required public java.lang.String getIn()
-
getDescription
public @Nullable java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceReference
-
getRequired
public java.lang.Boolean getRequired()
-
getDeprecated
public java.lang.Boolean getDeprecated()
-
getAllowEmptyValue
public java.lang.Boolean getAllowEmptyValue()
-
getStyle
public java.lang.String getStyle()
-
getExplode
public java.lang.Boolean getExplode()
-
getAllowReserved
public java.lang.Boolean getAllowReserved()
-
getSchema
public @Nullable Schema getSchema()
-
getExample
public @Nullable java.lang.Object getExample()
-
getExamples
public java.util.Map<java.lang.String,Example> getExamples()
-
getContent
public java.util.Map<java.lang.String,MediaType> getContent()
-
getExtensions
public java.util.Map<java.lang.String,java.lang.Object> getExtensions()
Description copied from interface:Extensionsmap of all extension properties.- Specified by:
getExtensionsin interfaceExtensions- Overrides:
getExtensionsin classProperties- Returns:
- map of extension properties
-
-