com.deepoove.swagger.diff.model.ChangedOperation 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 ChangedOperation implements Changed {
private String summary;
private List addParameters = new ArrayList();
private List missingParameters = new ArrayList();
private List changedParameter = new ArrayList();
private List addProps = new ArrayList();
private List missingProps = new ArrayList();
public List getAddParameters() {
return addParameters;
}
public void setAddParameters(List addParameters) {
this.addParameters = addParameters;
}
public List getMissingParameters() {
return missingParameters;
}
public void setMissingParameters(List missingParameters) {
this.missingParameters = missingParameters;
}
public List getChangedParameter() {
return changedParameter;
}
public void setChangedParameter(List changedParameter) {
this.changedParameter = changedParameter;
}
public List getAddProps() {
return addProps;
}
public void setAddProps(List addProps) {
this.addProps = addProps;
}
public List getMissingProps() {
return missingProps;
}
public void setMissingProps(List missingProps) {
this.missingProps = missingProps;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public boolean isDiff() {
return !addParameters.isEmpty() || !missingParameters.isEmpty()
|| !changedParameter.isEmpty() || !addProps.isEmpty()
|| !missingProps.isEmpty();
}
public boolean isDiffProp(){
return !addProps.isEmpty()
|| !missingProps.isEmpty();
}
public boolean isDiffParam(){
return !addParameters.isEmpty() || !missingParameters.isEmpty()
|| !changedParameter.isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy