io.apicurio.datamodels.models.openapi.v31.OpenApi31DiscriminatorImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apicurio-data-models Show documentation
Show all versions of apicurio-data-models Show documentation
Open Source API Design Studio
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();
}
}