de.dagere.peass.vcs.GitCommit Maven / Gradle / Ivy
The newest version!
/**
* This file is part of PerAn.
*
* PerAn is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PerAn is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PerAn. If not, see .
*/
package de.dagere.peass.vcs;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Holds data of a git commit.
*
* @author reichelt
*
*/
public class GitCommit {
private String tag, comitter;
private String date, message;
@JsonCreator
public GitCommit(@JsonProperty("tag") final String tag,
@JsonProperty("comitter") final String comitter,
@JsonProperty("date") final String date,
@JsonProperty("message") final String message) {
this.tag = tag;
this.comitter = comitter;
this.date = date;
this.message = message;
}
public String getTag() {
return tag;
}
public void setTag(final String tag) {
this.tag = tag;
}
public String getComitter() {
return comitter;
}
public void setComitter(final String comitter) {
this.comitter = comitter;
}
public String getDate() {
return date;
}
public void setDate(final String date) {
this.date = date;
}
public String getMessage() {
return message;
}
public void setMessage(final String message) {
this.message = message;
}
@Override
public String toString() {
return tag;
}
}