com.devonfw.cobigen.openapiplugin.model.ComponentDef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapiplugin-model Show documentation
Show all versions of openapiplugin-model Show documentation
A Code-based incremental Generator
package com.devonfw.cobigen.openapiplugin.model;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
/**
* Definition that store the configuration of a oasp4j component from OpenApi
*/
@SuppressWarnings("javadoc")
public class ComponentDef {
private String name;
private List paths;
/**
* This Map stores all the "extension" properties defined by the user on the OpenAPI file for this entity
*/
private Map extensionProperties = new HashMap<>();
public ComponentDef() {
paths = new LinkedList<>();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List getPaths() {
return paths;
}
public void setPaths(List paths) {
this.paths = paths;
}
/**
* @return the Map of all the extension tags
*/
public Map getUserPropertiesMap() {
return extensionProperties;
}
/**
* Sets the Map of all the extensions tags
* @param extensions
*/
public void setUserPropertiesMap(Map extensions) {
extensionProperties.putAll(extensions);
}
public Object getUserProperty(String key) {
return extensionProperties.get(key);
}
public void setUserProperty(String key, String value) {
extensionProperties.put(key, value);
}
}