Package com.networknt.oas.model.impl
Class MediaTypeImpl
- java.lang.Object
-
- com.networknt.jsonoverlay.JsonOverlay<V>
-
- com.networknt.jsonoverlay.PropertiesOverlay<MediaType>
-
- com.networknt.oas.model.impl.MediaTypeImpl
-
-
Field Summary
Fields Modifier and Type Field Description static StringF_encodingPropertiesstatic StringF_examplestatic StringF_examplesstatic StringF_extensionsstatic StringF_schemastatic com.networknt.jsonoverlay.OverlayFactory<MediaType>factory
-
Constructor Summary
Constructors Constructor Description MediaTypeImpl(com.fasterxml.jackson.databind.JsonNode json, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)MediaTypeImpl(MediaType mediaType, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
Method Summary
-
Methods inherited from class com.networknt.jsonoverlay.PropertiesOverlay
_add, _createList, _createMap, _createScalar, _elaborate, _findInternal, _fixJson, _fromJson, _get, _get, _get, _get, _get, _get, _getList, _getList, _getMap, _getMap, _getOverlay, _insert, _isElaborated, _isPresent, _remove, _remove, _set, _set, _setList, _setMap, _setScalar, _toJsonInternal, equals, equals, hashCode
-
Methods inherited from class com.networknt.jsonoverlay.JsonOverlay
_ensureElaborated, _getCreatingRef, _jsonArray, _jsonBoolean, _jsonMissing, _jsonNull, _jsonObject, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _jsonScalar, _setCreatingRef, _setParent, builder, create, toString
-
-
-
-
Field Detail
-
F_schema
public static final String F_schema
- See Also:
- Constant Field Values
-
F_examples
public static final String F_examples
- See Also:
- Constant Field Values
-
F_example
public static final String F_example
- See Also:
- Constant Field Values
-
F_encodingProperties
public static final String F_encodingProperties
- See Also:
- Constant Field Values
-
F_extensions
public static final String F_extensions
- See Also:
- Constant Field Values
-
factory
public static com.networknt.jsonoverlay.OverlayFactory<MediaType> factory
-
-
Constructor Detail
-
MediaTypeImpl
public MediaTypeImpl(com.fasterxml.jackson.databind.JsonNode json, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
MediaTypeImpl
public MediaTypeImpl(MediaType mediaType, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
-
Method Detail
-
getSchema
public Schema getSchema(boolean elaborate)
-
getExamples
public Map<String,Example> getExamples()
- Specified by:
getExamplesin interfaceMediaType
-
getExamples
public Map<String,Example> getExamples(boolean elaborate)
- Specified by:
getExamplesin interfaceMediaType
-
hasExamples
public boolean hasExamples()
- Specified by:
hasExamplesin interfaceMediaType
-
hasExample
public boolean hasExample(String name)
- Specified by:
hasExamplein interfaceMediaType
-
getExample
public Example getExample(String name)
- Specified by:
getExamplein interfaceMediaType
-
setExamples
public void setExamples(Map<String,Example> examples)
- Specified by:
setExamplesin interfaceMediaType
-
setExample
public void setExample(String name, Example example)
- Specified by:
setExamplein interfaceMediaType
-
removeExample
public void removeExample(String name)
- Specified by:
removeExamplein interfaceMediaType
-
getExample
public Object getExample()
- Specified by:
getExamplein interfaceMediaType
-
setExample
public void setExample(Object example)
- Specified by:
setExamplein interfaceMediaType
-
getEncodingProperties
public Map<String,EncodingProperty> getEncodingProperties()
- Specified by:
getEncodingPropertiesin interfaceMediaType
-
getEncodingProperties
public Map<String,EncodingProperty> getEncodingProperties(boolean elaborate)
- Specified by:
getEncodingPropertiesin interfaceMediaType
-
hasEncodingProperties
public boolean hasEncodingProperties()
- Specified by:
hasEncodingPropertiesin interfaceMediaType
-
hasEncodingProperty
public boolean hasEncodingProperty(String name)
- Specified by:
hasEncodingPropertyin interfaceMediaType
-
getEncodingProperty
public EncodingProperty getEncodingProperty(String name)
- Specified by:
getEncodingPropertyin interfaceMediaType
-
setEncodingProperties
public void setEncodingProperties(Map<String,EncodingProperty> encodingProperties)
- Specified by:
setEncodingPropertiesin interfaceMediaType
-
setEncodingProperty
public void setEncodingProperty(String name, EncodingProperty encodingProperty)
- Specified by:
setEncodingPropertyin interfaceMediaType
-
removeEncodingProperty
public void removeEncodingProperty(String name)
- Specified by:
removeEncodingPropertyin interfaceMediaType
-
getExtensions
public Map<String,Object> getExtensions()
- Specified by:
getExtensionsin interfaceMediaType
-
getExtensions
public Map<String,Object> getExtensions(boolean elaborate)
- Specified by:
getExtensionsin interfaceMediaType
-
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensionsin interfaceMediaType
-
hasExtension
public boolean hasExtension(String name)
- Specified by:
hasExtensionin interfaceMediaType
-
getExtension
public Object getExtension(String name)
- Specified by:
getExtensionin interfaceMediaType
-
setExtensions
public void setExtensions(Map<String,Object> extensions)
- Specified by:
setExtensionsin interfaceMediaType
-
setExtension
public void setExtension(String name, Object extension)
- Specified by:
setExtensionin interfaceMediaType
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceMediaType
-
_elaborateJson
protected void _elaborateJson()
- Overrides:
_elaborateJsonin classcom.networknt.jsonoverlay.PropertiesOverlay<MediaType>
-
_getModelType
public Class<?> _getModelType()
- Overrides:
_getModelTypein classcom.networknt.jsonoverlay.JsonOverlay<MediaType>
-
_getFactory
protected com.networknt.jsonoverlay.OverlayFactory<?> _getFactory()
- Specified by:
_getFactoryin classcom.networknt.jsonoverlay.JsonOverlay<MediaType>
-
builder
public static <OV extends com.networknt.jsonoverlay.IJsonOverlay<?>> com.networknt.jsonoverlay.Builder<MediaType> builder(OV modelMember)
-
create
public static <OV extends com.networknt.jsonoverlay.IJsonOverlay<?>> MediaType create(OV modelMember)
-
-