1 package org.opendaylight.controller.sal.core;
3 import javax.xml.bind.annotation.XmlElement;
4 import javax.xml.bind.annotation.XmlRootElement;
7 * The class represents the Name property of an element.
10 @SuppressWarnings("serial")
11 public class Description extends Property {
13 private String description;
14 public static final String propertyName = "description";
17 * Private constructor used for JAXB mapping
19 private Description() {
21 this.description = null;
24 public Description(String description) {
26 this.description = description;
29 public Description clone() {
30 return new Description(this.description);
33 public String getValue() {
34 return this.description;
38 public int hashCode() {
40 int result = super.hashCode();
41 result = prime * result
42 + ((description == null) ? 0 : description.hashCode());
47 public boolean equals(Object obj) {
50 if (!super.equals(obj))
52 if (getClass() != obj.getClass())
54 Description other = (Description) obj;
55 if (description == null) {
56 if (other.description != null)
58 } else if (!description.equals(other.description))
64 public String toString() {
65 return "Description[" + description + "]";