1 package org.opendaylight.controller.sal.core;
3 import javax.xml.bind.annotation.XmlElement;
4 import javax.xml.bind.annotation.XmlRootElement;
6 import org.apache.commons.lang3.builder.EqualsBuilder;
7 import org.apache.commons.lang3.builder.HashCodeBuilder;
10 * The class represents the Name property of an element.
13 @SuppressWarnings("serial")
14 public class Description extends Property {
16 private String description;
17 public static final String propertyName = "description";
20 * Private constructor used for JAXB mapping
22 private Description() {
24 this.description = null;
27 public Description(String description) {
29 this.description = description;
32 public Description clone() {
33 return new Description(this.description);
36 public String getValue() {
37 return this.description;
41 public int hashCode() {
42 return HashCodeBuilder.reflectionHashCode(this);
46 public boolean equals(Object obj) {
47 return EqualsBuilder.reflectionEquals(this, obj);
51 public String toString() {
52 return "Description[" + description + "]";