Package org.openapitools.codegen.model
Class ModelMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.openapitools.codegen.model.ModelMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class ModelMap extends HashMap<String,Object>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CodegenModel
getModel()
void
setModel(CodegenModel model)
static HashMap<String,CodegenModel>
toCodegenModelMap(List<ModelMap> allModels)
Convert a list of ModelMap to map of CodegenModel.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
setModel
public void setModel(CodegenModel model)
-
getModel
public CodegenModel getModel()
-
toCodegenModelMap
public static HashMap<String,CodegenModel> toCodegenModelMap(List<ModelMap> allModels)
Convert a list of ModelMap to map of CodegenModel.- Parameters:
allModels
- list of model map- Returns:
- map of Codegen Model
-
-