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

com.deepoove.swagger.diff.model.ChangedParameter Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package com.deepoove.swagger.diff.model;

import java.util.ArrayList;
import java.util.List;

import io.swagger.models.parameters.Parameter;

public class ChangedParameter implements Changed {
	
	private List increased = new ArrayList();
	private List missing = 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();
	}

	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;
	}
	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy