
io.inugami.configuration.models.plugins.EventsFileModel Maven / Gradle / Ivy
/* --------------------------------------------------------------------
* Inugami
* --------------------------------------------------------------------
*
* This program 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, version 3.
*
* This program 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 this program. If not, see .
*/
package io.inugami.configuration.models.plugins;
import java.io.Serializable;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
/**
* EventsFile
*
* @author patrick_guillerm
* @since 26 déc. 2016
*/
@XStreamAlias("events-file")
public class EventsFileModel implements Serializable {
// =========================================================================
// ATTRIBUTES
// =========================================================================
/** The Constant serialVersionUID. */
private static final long serialVersionUID = -7319088596927383309L;
@XStreamAsAttribute
private String name;
// =========================================================================
// CONSTRUCTORS
// =========================================================================
public EventsFileModel() {
super();
}
public EventsFileModel(final String name) {
super();
this.name = name;
}
// =========================================================================
// OVERRIDES
// =========================================================================
@Override
public int hashCode() {
return ((name == null) ? 0 : name.hashCode());
}
@Override
public boolean equals(final Object obj) {
boolean result = this == obj;
if (!result && (obj != null) && (obj instanceof EventsFileModel)) {
final EventsFileModel other = (EventsFileModel) obj;
result = name == null ? other.getName() == null : name.equals(other.getName());
}
return result;
}
@Override
public String toString() {
final StringBuilder builder = new StringBuilder();
builder.append("EventsFileModel [name=");
builder.append(name);
builder.append("]");
return builder.toString();
}
// =========================================================================
// GETTERS & SETTERS
// =========================================================================
public String getName() {
return name;
}
public void setName(final String name) {
this.name = name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy