Package com.networknt.oas.model.impl
Class HeaderImpl
- java.lang.Object
-
- com.networknt.jsonoverlay.JsonOverlay<V>
-
- com.networknt.jsonoverlay.PropertiesOverlay<Header>
-
- com.networknt.oas.model.impl.HeaderImpl
-
-
Field Summary
Fields Modifier and Type Field Description static StringF_allowEmptyValuestatic StringF_allowReservedstatic StringF_contentMediaTypesstatic StringF_deprecatedstatic StringF_descriptionstatic StringF_examplestatic StringF_examplesstatic StringF_explodestatic StringF_extensionsstatic StringF_requiredstatic StringF_schemastatic StringF_stylestatic com.networknt.jsonoverlay.OverlayFactory<Header>factory
-
Constructor Summary
Constructors Constructor Description HeaderImpl(com.fasterxml.jackson.databind.JsonNode json, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)HeaderImpl(Header header, 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_description
public static final String F_description
- See Also:
- Constant Field Values
-
F_required
public static final String F_required
- See Also:
- Constant Field Values
-
F_deprecated
public static final String F_deprecated
- See Also:
- Constant Field Values
-
F_allowEmptyValue
public static final String F_allowEmptyValue
- See Also:
- Constant Field Values
-
F_style
public static final String F_style
- See Also:
- Constant Field Values
-
F_explode
public static final String F_explode
- See Also:
- Constant Field Values
-
F_allowReserved
public static final String F_allowReserved
- See Also:
- Constant Field Values
-
F_schema
public static final String F_schema
- See Also:
- Constant Field Values
-
F_example
public static final String F_example
- See Also:
- Constant Field Values
-
F_examples
public static final String F_examples
- See Also:
- Constant Field Values
-
F_contentMediaTypes
public static final String F_contentMediaTypes
- 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<Header> factory
-
-
Constructor Detail
-
HeaderImpl
public HeaderImpl(com.fasterxml.jackson.databind.JsonNode json, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
HeaderImpl
public HeaderImpl(Header header, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceHeader
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceHeader
-
getRequired
public Boolean getRequired()
- Specified by:
getRequiredin interfaceHeader
-
isRequired
public boolean isRequired()
- Specified by:
isRequiredin interfaceHeader
-
setRequired
public void setRequired(Boolean required)
- Specified by:
setRequiredin interfaceHeader
-
getDeprecated
public Boolean getDeprecated()
- Specified by:
getDeprecatedin interfaceHeader
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecatedin interfaceHeader
-
setDeprecated
public void setDeprecated(Boolean deprecated)
- Specified by:
setDeprecatedin interfaceHeader
-
getAllowEmptyValue
public Boolean getAllowEmptyValue()
- Specified by:
getAllowEmptyValuein interfaceHeader
-
isAllowEmptyValue
public boolean isAllowEmptyValue()
- Specified by:
isAllowEmptyValuein interfaceHeader
-
setAllowEmptyValue
public void setAllowEmptyValue(Boolean allowEmptyValue)
- Specified by:
setAllowEmptyValuein interfaceHeader
-
getExplode
public Boolean getExplode()
- Specified by:
getExplodein interfaceHeader
-
setExplode
public void setExplode(Boolean explode)
- Specified by:
setExplodein interfaceHeader
-
getAllowReserved
public Boolean getAllowReserved()
- Specified by:
getAllowReservedin interfaceHeader
-
isAllowReserved
public boolean isAllowReserved()
- Specified by:
isAllowReservedin interfaceHeader
-
setAllowReserved
public void setAllowReserved(Boolean allowReserved)
- Specified by:
setAllowReservedin interfaceHeader
-
getExample
public Object getExample()
- Specified by:
getExamplein interfaceHeader
-
setExample
public void setExample(Object example)
- Specified by:
setExamplein interfaceHeader
-
getExamples
public Map<String,Example> getExamples()
- Specified by:
getExamplesin interfaceHeader
-
getExamples
public Map<String,Example> getExamples(boolean elaborate)
- Specified by:
getExamplesin interfaceHeader
-
hasExamples
public boolean hasExamples()
- Specified by:
hasExamplesin interfaceHeader
-
hasExample
public boolean hasExample(String name)
- Specified by:
hasExamplein interfaceHeader
-
getExample
public Example getExample(String name)
- Specified by:
getExamplein interfaceHeader
-
setExamples
public void setExamples(Map<String,Example> examples)
- Specified by:
setExamplesin interfaceHeader
-
setExample
public void setExample(String name, Example example)
- Specified by:
setExamplein interfaceHeader
-
removeExample
public void removeExample(String name)
- Specified by:
removeExamplein interfaceHeader
-
getContentMediaTypes
public Map<String,MediaType> getContentMediaTypes()
- Specified by:
getContentMediaTypesin interfaceHeader
-
getContentMediaTypes
public Map<String,MediaType> getContentMediaTypes(boolean elaborate)
- Specified by:
getContentMediaTypesin interfaceHeader
-
hasContentMediaTypes
public boolean hasContentMediaTypes()
- Specified by:
hasContentMediaTypesin interfaceHeader
-
hasContentMediaType
public boolean hasContentMediaType(String name)
- Specified by:
hasContentMediaTypein interfaceHeader
-
getContentMediaType
public MediaType getContentMediaType(String name)
- Specified by:
getContentMediaTypein interfaceHeader
-
setContentMediaTypes
public void setContentMediaTypes(Map<String,MediaType> contentMediaTypes)
- Specified by:
setContentMediaTypesin interfaceHeader
-
setContentMediaType
public void setContentMediaType(String name, MediaType contentMediaType)
- Specified by:
setContentMediaTypein interfaceHeader
-
removeContentMediaType
public void removeContentMediaType(String name)
- Specified by:
removeContentMediaTypein interfaceHeader
-
getExtensions
public Map<String,Object> getExtensions()
- Specified by:
getExtensionsin interfaceHeader
-
getExtensions
public Map<String,Object> getExtensions(boolean elaborate)
- Specified by:
getExtensionsin interfaceHeader
-
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensionsin interfaceHeader
-
hasExtension
public boolean hasExtension(String name)
- Specified by:
hasExtensionin interfaceHeader
-
getExtension
public Object getExtension(String name)
- Specified by:
getExtensionin interfaceHeader
-
setExtensions
public void setExtensions(Map<String,Object> extensions)
- Specified by:
setExtensionsin interfaceHeader
-
setExtension
public void setExtension(String name, Object extension)
- Specified by:
setExtensionin interfaceHeader
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfaceHeader
-
_elaborateJson
protected void _elaborateJson()
- Overrides:
_elaborateJsonin classcom.networknt.jsonoverlay.PropertiesOverlay<Header>
-
_getModelType
public Class<?> _getModelType()
- Overrides:
_getModelTypein classcom.networknt.jsonoverlay.JsonOverlay<Header>
-
_getFactory
protected com.networknt.jsonoverlay.OverlayFactory<?> _getFactory()
- Specified by:
_getFactoryin classcom.networknt.jsonoverlay.JsonOverlay<Header>
-
builder
public static <OV extends com.networknt.jsonoverlay.IJsonOverlay<?>> com.networknt.jsonoverlay.Builder<Header> builder(OV modelMember)
-
create
public static <OV extends com.networknt.jsonoverlay.IJsonOverlay<?>> Header create(OV modelMember)
-
-