All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.devonfw.cobigen.openapiplugin.model.ComponentDef Maven / Gradle / Ivy

There is a newer version: 2021.12.006
Show newest version
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() {

    this.paths = new LinkedList<>();
  }

  public String getName() {

    return this.name;
  }

  public void setName(String name) {

    this.name = name;
  }

  public List getPaths() {

    return this.paths;
  }

  public void setPaths(List paths) {

    this.paths = paths;
  }

  /**
   * @return the Map of all the extension tags
   */
  public Map getUserPropertiesMap() {

    return this.extensionProperties;
  }

  /**
   * Sets the Map of all the extensions tags
   *
   * @param extensions
   */
  public void setUserPropertiesMap(Map extensions) {

    this.extensionProperties.putAll(extensions);

  }

  public Object getUserProperty(String key) {

    return this.extensionProperties.get(key);
  }

  public void setUserProperty(String key, String value) {

    this.extensionProperties.put(key, value);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy