2 * Copyright (c) 2016 Intel Corporation All rights reserved.
3 * Copyright (c) 2016 Isaku Yamahata All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.neutron.spi;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
18 @XmlAccessorType(XmlAccessType.NONE)
19 public abstract class NeutronBaseAttributes<T extends NeutronBaseAttributes<T>> extends NeutronObject<T>
20 implements INeutronBaseAttributes<T> {
21 private static final long serialVersionUID = 1L;
23 @XmlElement(name = "name")
26 public NeutronBaseAttributes() {
30 public String getName() {
35 public void setName(String name) {
40 protected boolean extractField(String field, T ans) {
43 ans.setName(this.getName());
46 return super.extractField(field, ans);