package blade.migrate.api;
import java.io.File;
public class Problem {
public Problem() {
}
public Problem( String title, String summary, String type,
String ticket, File file,
int lineNumber, int startOffset, int endOffset,
String html, String autoCorrectContext) {
this.title = title;
this.summary = summary;
this.type = type;
this.ticket = ticket;
this.file = file;
this.lineNumber = lineNumber;
this.startOffset = startOffset;
this.endOffset = endOffset;
this.html = html;
this.autoCorrectContext = autoCorrectContext;
}
public File file;
public int lineNumber;
public int number;
public String summary;
public String ticket;
public String title;
public String type;
public int endOffset;
public int startOffset;
public String html;
public String autoCorrectContext;
public String getTitle() {
return title;
}
public File getFile() {
return file;
}
public void setFile(File file) {
this.file = file;
}
public int getLineNumber() {
return lineNumber;
}
public void setLineNumber(int lineNumber) {
this.lineNumber = lineNumber;
}
public int getNumber() {
return number;
}
public void setNumber(int number) {
this.number = number;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public String getTicket() {
return ticket;
}
public void setTicket(String ticket) {
this.ticket = ticket;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public int getEndOffset() {
return endOffset;
}
public void setEndOffset(int endOffset) {
this.endOffset = endOffset;
}
public int getStartOffset() {
return startOffset;
}
public void setStartOffset(int startOffset) {
this.startOffset = startOffset;
}
public void setTitle(String title) {
this.title = title;
}
public String getAutoCorrectContext() {
return autoCorrectContext;
}
public void setAutoCorrectContext(String autoCorrectContext) {
this.autoCorrectContext = autoCorrectContext;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Problem other = (Problem) obj;
if (endOffset != other.endOffset)
return false;
if (file == null) {
if (other.file != null)
return false;
} else if (!file.equals(other.file))
return false;
if (lineNumber != other.lineNumber)
return false;
if (number != other.number)
return false;
if (startOffset != other.startOffset)
return false;
if (summary == null) {
if (other.summary != null)
return false;
} else if (!summary.equals(other.summary))
return false;
if (ticket == null) {
if (other.ticket != null)
return false;
} else if (!ticket.equals(other.ticket))
return false;
if (title == null) {
if (other.title != null)
return false;
} else if (!title.equals(other.title))
return false;
if (type == null) {
if (other.type != null)
return false;
} else if (!type.equals(other.type))
return false;
if (autoCorrectContext == null) {
if (other.autoCorrectContext != null)
return false;
} else if (!autoCorrectContext.equals(other.autoCorrectContext))
return false;
return true;
}
}