X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Freader%2FNodeDescription.java;fp=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Freader%2FNodeDescription.java;h=0000000000000000000000000000000000000000;hb=42c32160bfd41de57189bb246fec5ffb48ed8e9e;hp=12ce4d69482b3f32a61b3aade2b79079aa130f6d;hpb=edf5bfcee83c750853253ccfd991ba7000f5f65b;p=controller.git diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/reader/NodeDescription.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/reader/NodeDescription.java deleted file mode 100644 index 12ce4d6948..0000000000 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/reader/NodeDescription.java +++ /dev/null @@ -1,150 +0,0 @@ - -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -package org.opendaylight.controller.sal.reader; - -import java.io.Serializable; - - -/** - * Represents the network node description information - */ -public class NodeDescription implements Serializable, Cloneable{ - private static final long serialVersionUID = 1L; - - private String manufacturer; - private String hardware; - private String software; - private String serialNumber; - private String description; - - public NodeDescription() { - - } - - public String getManufacturer() { - return manufacturer; - } - - public void setManufacturer(String manufacturer) { - this.manufacturer = manufacturer; - } - - public String getHardware() { - return hardware; - } - - public void setHardware(String hardware) { - this.hardware = hardware; - } - - public String getSoftware() { - return software; - } - - public void setSoftware(String software) { - this.software = software; - } - - public String getSerialNumber() { - return serialNumber; - } - - public void setSerialNumber(String serialNumber) { - this.serialNumber = serialNumber; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((description == null) ? 0 : description.hashCode()); - result = prime * result + ((hardware == null) ? 0 : hardware.hashCode()); - result = prime * result + ((manufacturer == null) ? 0 : manufacturer.hashCode()); - result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode()); - result = prime * result + ((software == null) ? 0 : software.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (!(obj instanceof NodeDescription)) { - return false; - } - NodeDescription other = (NodeDescription) obj; - if (description == null) { - if (other.description != null) { - return false; - } - } else if (!description.equals(other.description)) { - return false; - } - if (hardware == null) { - if (other.hardware != null) { - return false; - } - } else if (!hardware.equals(other.hardware)) { - return false; - } - if (manufacturer == null) { - if (other.manufacturer != null) { - return false; - } - } else if (!manufacturer.equals(other.manufacturer)) { - return false; - } - if (serialNumber == null) { - if (other.serialNumber != null) { - return false; - } - } else if (!serialNumber.equals(other.serialNumber)) { - return false; - } - if (software == null) { - if (other.software != null) { - return false; - } - } else if (!software.equals(other.software)) { - return false; - } - return true; - } - - @Override - public String toString() { - return "HwDescription[manufacturer=" + manufacturer + ", hardware=" - + hardware + ", software=" + software + ", serialNumber=" - + serialNumber + ", description=" + description + "]"; - } - @Override - public NodeDescription clone() { - NodeDescription nd = new NodeDescription(); - nd.setDescription(description); - nd.setHardware(hardware); - nd.setManufacturer(manufacturer); - nd.setSerialNumber(serialNumber); - nd.setSoftware(software); - - return nd; - } -}