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 {
12 @XmlElement(name="value")
13 private String descriptionValue;
14 public static final String propertyName = "description";
17 * Private constructor used for JAXB mapping
19 private Description() {
21 this.descriptionValue = null;
24 public Description(String description) {
26 this.descriptionValue = description;
30 public Description clone() {
31 return new Description(this.descriptionValue);
34 public String getValue() {
35 return this.descriptionValue;
39 public int hashCode() {
41 int result = super.hashCode();
42 result = prime * result
43 + ((descriptionValue == null) ? 0 : descriptionValue.hashCode());
48 public boolean equals(Object obj) {
51 if (!super.equals(obj))
53 if (getClass() != obj.getClass())
55 Description other = (Description) obj;
56 if (descriptionValue == null) {
57 if (other.descriptionValue != null)
59 } else if (!descriptionValue.equals(other.descriptionValue))
65 public String toString() {
66 return "Description[" + descriptionValue + "]";