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

org.openapi4j.parser.model.v3.Discriminator Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package org.openapi4j.parser.model.v3;

import org.openapi4j.parser.model.AbsOpenApiSchema;

import java.util.Map;

public class Discriminator extends AbsOpenApiSchema {
  private Map mapping;
  private String propertyName;

  public String getPropertyName() {
    return propertyName;
  }

  public Discriminator setPropertyName(String propertyName) {
    this.propertyName = propertyName;
    return this;
  }

  public Map getMapping() {
    return mapping;
  }

  public Discriminator setMapping(Map mapping) {
    this.mapping = mapping;
    return this;
  }

  @Override
  public Discriminator copy() {
    Discriminator copy = new Discriminator();

    copy.setPropertyName(getPropertyName());
    copy.setMapping(copySimpleMap(getMapping()));

    return copy;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy