package org.opennaas.extensions.quantum.model; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; /** * * @author Adrian Rosello (i2CAT) * */ @XmlRootElement(name = "attachment") @XmlAccessorType(XmlAccessType.FIELD) public class Attachment { private String id; private String mac; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getMac() { return mac; } public void setMac(String mac) { this.mac = mac; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Attachment other = (Attachment) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (mac == null) { if (other.mac != null) return false; } else if (!mac.equals(other.mac)) return false; return true; } }