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

com.devonfw.cobigen.openapiplugin.model.EntityDef 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 stores the configuration of an OpenApi definition schema
 */
@SuppressWarnings("javadoc")
public class EntityDef {

  private ComponentDef component;

  private String componentName;

  private HeaderDef header;

  /**
   * This Map stores all the "extension" properties defined by the user on the OpenAPI file for this entity
   */
  private Map extensionProperties = new HashMap<>();

  private String name;

  private String description;

  private List properties;

  private List allEntityDefs;

  public HeaderDef getHeader() {

    return this.header;
  }

  public void setHeader(HeaderDef header) {

    this.header = header;
  }

  public Map getExtensionProperties() {

    return this.extensionProperties;
  }

  public void setExtensionProperties(Map extensionProperties) {

    this.extensionProperties = extensionProperties;
  }

  public EntityDef() {

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

  public ComponentDef getComponent() {

    return this.component;
  }

  public void setComponent(ComponentDef component) {

    this.component = component;
  }

  /**
   * @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);
  }

  public String getName() {

    return this.name;
  }

  public void setName(String name) {

    this.name = name;
  }

  public String getComponentName() {

    return this.componentName;
  }

  public void setComponentName(String componentName) {

    this.componentName = componentName;
  }

  public List getProperties() {

    return this.properties;
  }

  public void setProperties(List properties) {

    this.properties = properties;
  }

  public String getDescription() {

    return this.description;
  }

  public void setDescription(String description) {

    this.description = description;
  }

  public List getAllEntityDefs() {

    return this.allEntityDefs;
  }

  public void setAllEntityDefs(List allEntityDefs) {

    this.allEntityDefs = allEntityDefs;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy