japicmp.output.extapi.jpa.model.JpaName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of japicmp Show documentation
Show all versions of japicmp Show documentation
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);
}
}