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

io.apicurio.datamodels.models.openapi.v31.OpenApi31DiscriminatorImpl Maven / Gradle / Ivy

The newest version!
package io.apicurio.datamodels.models.openapi.v31;

import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.NodeImpl;
import io.apicurio.datamodels.models.openapi.v31.visitors.OpenApi31Visitor;
import io.apicurio.datamodels.models.visitors.Visitor;
import java.util.Map;

public class OpenApi31DiscriminatorImpl extends NodeImpl implements OpenApi31Discriminator {

	private String propertyName;
	private Map mapping;

	@Override
	public String getPropertyName() {
		return propertyName;
	}

	@Override
	public void setPropertyName(String value) {
		this.propertyName = value;
	}

	@Override
	public Map getMapping() {
		return mapping;
	}

	@Override
	public void setMapping(Map value) {
		this.mapping = value;
	}

	@Override
	public void accept(Visitor visitor) {
		OpenApi31Visitor viz = (OpenApi31Visitor) visitor;
		viz.visitDiscriminator(this);
	}

	@Override
	public Node emptyClone() {
		return new OpenApi31DiscriminatorImpl();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy