
com.willwinder.universalgcodesender.firmware.FirmwareSettingsFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ugs-core Show documentation
Show all versions of ugs-core Show documentation
Universal Gcode Sender Library
The newest version!
/*
Copyright 2018 Will Winder
This file is part of Universal Gcode Sender (UGS).
UGS 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.
UGS 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 UGS. If not, see .
*/
package com.willwinder.universalgcodesender.firmware;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.io.Serializable;
import java.util.List;
/**
* A firmware setting file model that can be persisted as a JSON file.
*
* @author Joacim Breiler
*/
public class FirmwareSettingsFile implements Serializable {
/**
* An optional name for the settings profile. This could be the name for the purchased machine.
*/
private String name;
/**
* A name for the user that created this file
*/
private String createdBy;
/**
* The date that this file was created. Should be in ISO format (yyyy-MM-dd)
*/
private String date;
/**
* The name and version of the firmware that this settings is applicable for.
*/
private String firmwareName;
/**
* A list of setting parameters
*/
private List settings;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getFirmwareName() {
return firmwareName;
}
public void setFirmwareName(String firmwareName) {
this.firmwareName = firmwareName;
}
public List getSettings() {
return settings;
}
public void setSettings(List settings) {
this.settings = settings;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public boolean equals(Object obj) {
return EqualsBuilder.reflectionEquals(this, obj);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy