![JAR search and dependency download from the Maven repository](/logo.png)
org.devocative.devolcano.xml.plan.XVolcano Maven / Gradle / Ivy
package org.devocative.devolcano.xml.plan;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
@XStreamAlias("volcano")
public class XVolcano {
@XStreamAsAttribute
private String name;
private String precondition;
private XTemplate template;
// ------------------------------
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPrecondition() {
return precondition;
}
public void setPrecondition(String precondition) {
this.precondition = precondition;
}
public XTemplate getTemplate() {
return template;
}
public void setTemplate(XTemplate template) {
this.template = template;
}
// ------------------------------
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof XVolcano)) return false;
XVolcano xVolcano = (XVolcano) o;
return !(getName() != null ? !getName().equals(xVolcano.getName()) : xVolcano.getName() != null);
}
@Override
public int hashCode() {
return getName() != null ? getName().hashCode() : 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy