com.deepoove.swagger.diff.model.ChangedParameter Maven / Gradle / Ivy
package com.deepoove.swagger.diff.model;
import java.util.ArrayList;
import java.util.List;
import io.swagger.models.parameters.Parameter;
public class ChangedParameter extends ChangedExtensionGroup implements Changed {
private List increased = new ArrayList();
private List missing = new ArrayList();
private List changed = new ArrayList();
private Parameter leftParameter;
private Parameter rightParameter;
private boolean isChangeRequired;
// private boolean isChangeType;
private boolean isChangeDescription;
public boolean isChangeRequired() {
return isChangeRequired;
}
public void setChangeRequired(boolean isChangeRequired) {
this.isChangeRequired = isChangeRequired;
}
public boolean isChangeDescription() {
return isChangeDescription;
}
public void setChangeDescription(boolean isChangeDescription) {
this.isChangeDescription = isChangeDescription;
}
public Parameter getLeftParameter() {
return leftParameter;
}
public void setLeftParameter(Parameter leftParameter) {
this.leftParameter = leftParameter;
}
public Parameter getRightParameter() {
return rightParameter;
}
public void setRightParameter(Parameter rightParameter) {
this.rightParameter = rightParameter;
}
public boolean isDiff() {
return isChangeRequired
|| isChangeDescription
|| !increased.isEmpty()
|| !missing.isEmpty()
|| !changed.isEmpty()
|| vendorExtensionsAreDiff();
}
public List getIncreased() {
return increased;
}
public void setIncreased(List increased) {
this.increased = increased;
}
public List getMissing() {
return missing;
}
public void setMissing(List missing) {
this.missing = missing;
}
public List getChanged() {
return changed;
}
public void setChanged(List changed) {
this.changed = changed;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy