2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.sal.restconf.impl.test.structures;
10 public class YangElement {
11 protected String name;
13 protected YangElement(String name) {
17 public String getName() {
22 public boolean equals(Object obj) {
26 if (!this.getClass().equals(obj.getClass())) {
29 YangElement yangElement = (YangElement) obj;
30 if (this.name == null) {
31 if (yangElement.name != null) {
34 } else if (!this.name.equals(yangElement.name)) {
41 public int hashCode() {
44 result = prime * result + ((name == null) ? 0 : name.hashCode());
49 public String toString() {