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

japicmp.output.extapi.jpa.model.JpaName Maven / Gradle / Ivy

Go to download

japicmp is a library that computes the differences between two versions of a jar file/artifact in order to ease the API documentation for clients/customers.

The newest version!
package japicmp.output.extapi.jpa.model;

import japicmp.util.Optional;
import japicmp.model.JApiChangeStatus;
import japicmp.util.OptionalHelper;

import javax.xml.bind.annotation.XmlAttribute;

public class JpaName {
	private final Optional newName;
	private final Optional oldName;
	private final JApiChangeStatus changeStatus;

	public JpaName(Optional oldName, Optional newName, JApiChangeStatus changeStatus) {
		this.oldName = oldName;
		this.newName = newName;
		this.changeStatus = changeStatus;
	}

	@XmlAttribute(name = "changeStatus")
	public JApiChangeStatus getChangeStatus() {
		return changeStatus;
	}

	@XmlAttribute(name = "newName")
	public String getNewName() {
		return OptionalHelper.optionalToString(this.newName);
	}

	@XmlAttribute(name = "oldName")
	public String getOldName() {
		return OptionalHelper.optionalToString(this.oldName);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy