Package com.networknt.oas.model.impl
Class PathImpl
- java.lang.Object
-
- com.networknt.jsonoverlay.JsonOverlay<V>
-
- com.networknt.jsonoverlay.PropertiesOverlay<Path>
-
- com.networknt.oas.model.impl.PathImpl
-
-
Field Summary
Fields Modifier and Type Field Description static StringF_descriptionstatic StringF_extensionsstatic StringF_operationsstatic StringF_parametersstatic StringF_serversstatic StringF_summarystatic com.networknt.jsonoverlay.OverlayFactory<Path>factory
-
Constructor Summary
Constructors Constructor Description PathImpl(com.fasterxml.jackson.databind.JsonNode json, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)PathImpl(Path path, 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_summary
public static final String F_summary
- See Also:
- Constant Field Values
-
F_description
public static final String F_description
- See Also:
- Constant Field Values
-
F_operations
public static final String F_operations
- See Also:
- Constant Field Values
-
F_servers
public static final String F_servers
- See Also:
- Constant Field Values
-
F_parameters
public static final String F_parameters
- 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<Path> factory
-
-
Constructor Detail
-
PathImpl
public PathImpl(com.fasterxml.jackson.databind.JsonNode json, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
PathImpl
public PathImpl(Path path, com.networknt.jsonoverlay.JsonOverlay<?> parent, com.networknt.jsonoverlay.ReferenceManager refMgr)
-
-
Method Detail
-
getPathString
public String getPathString()
- Specified by:
getPathStringin interfacePath
-
getOptions
public Operation getOptions()
- Specified by:
getOptionsin interfacePath
-
getOptions
public Operation getOptions(boolean elaborate)
- Specified by:
getOptionsin interfacePath
-
setOptions
public void setOptions(Operation options)
- Specified by:
setOptionsin interfacePath
-
getSummary
public String getSummary()
- Specified by:
getSummaryin interfacePath
-
setSummary
public void setSummary(String summary)
- Specified by:
setSummaryin interfacePath
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfacePath
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfacePath
-
getOperations
public Map<String,Operation> getOperations()
- Specified by:
getOperationsin interfacePath
-
getOperations
public Map<String,Operation> getOperations(boolean elaborate)
- Specified by:
getOperationsin interfacePath
-
hasOperations
public boolean hasOperations()
- Specified by:
hasOperationsin interfacePath
-
hasOperation
public boolean hasOperation(String name)
- Specified by:
hasOperationin interfacePath
-
getOperation
public Operation getOperation(String name)
- Specified by:
getOperationin interfacePath
-
setOperations
public void setOperations(Map<String,Operation> operations)
- Specified by:
setOperationsin interfacePath
-
setOperation
public void setOperation(String name, Operation operation)
- Specified by:
setOperationin interfacePath
-
removeOperation
public void removeOperation(String name)
- Specified by:
removeOperationin interfacePath
-
getServers
public List<Server> getServers()
- Specified by:
getServersin interfacePath
-
getServers
public List<Server> getServers(boolean elaborate)
- Specified by:
getServersin interfacePath
-
hasServers
public boolean hasServers()
- Specified by:
hasServersin interfacePath
-
setServers
public void setServers(List<Server> servers)
- Specified by:
setServersin interfacePath
-
setServer
public void setServer(int index, Server server)
-
insertServer
public void insertServer(int index, Server server)- Specified by:
insertServerin interfacePath
-
removeServer
public void removeServer(int index)
- Specified by:
removeServerin interfacePath
-
getParameters
public List<Parameter> getParameters()
- Specified by:
getParametersin interfacePath
-
getParameters
public List<Parameter> getParameters(boolean elaborate)
- Specified by:
getParametersin interfacePath
-
hasParameters
public boolean hasParameters()
- Specified by:
hasParametersin interfacePath
-
getParameter
public Parameter getParameter(int index)
- Specified by:
getParameterin interfacePath
-
setParameters
public void setParameters(List<Parameter> parameters)
- Specified by:
setParametersin interfacePath
-
setParameter
public void setParameter(int index, Parameter parameter)- Specified by:
setParameterin interfacePath
-
addParameter
public void addParameter(Parameter parameter)
- Specified by:
addParameterin interfacePath
-
insertParameter
public void insertParameter(int index, Parameter parameter)- Specified by:
insertParameterin interfacePath
-
removeParameter
public void removeParameter(int index)
- Specified by:
removeParameterin interfacePath
-
getExtensions
public Map<String,Object> getExtensions()
- Specified by:
getExtensionsin interfacePath
-
getExtensions
public Map<String,Object> getExtensions(boolean elaborate)
- Specified by:
getExtensionsin interfacePath
-
hasExtensions
public boolean hasExtensions()
- Specified by:
hasExtensionsin interfacePath
-
hasExtension
public boolean hasExtension(String name)
- Specified by:
hasExtensionin interfacePath
-
getExtension
public Object getExtension(String name)
- Specified by:
getExtensionin interfacePath
-
setExtensions
public void setExtensions(Map<String,Object> extensions)
- Specified by:
setExtensionsin interfacePath
-
setExtension
public void setExtension(String name, Object extension)
- Specified by:
setExtensionin interfacePath
-
removeExtension
public void removeExtension(String name)
- Specified by:
removeExtensionin interfacePath
-
_elaborateJson
protected void _elaborateJson()
- Overrides:
_elaborateJsonin classcom.networknt.jsonoverlay.PropertiesOverlay<Path>
-
_getModelType
public Class<?> _getModelType()
- Overrides:
_getModelTypein classcom.networknt.jsonoverlay.JsonOverlay<Path>
-
_getFactory
protected com.networknt.jsonoverlay.OverlayFactory<?> _getFactory()
- Specified by:
_getFactoryin classcom.networknt.jsonoverlay.JsonOverlay<Path>
-
builder
public static <OV extends com.networknt.jsonoverlay.IJsonOverlay<?>> com.networknt.jsonoverlay.Builder<Path> builder(OV modelMember)
-
create
public static <OV extends com.networknt.jsonoverlay.IJsonOverlay<?>> Path create(OV modelMember)
-
-