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 java.io.Serializable;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlRootElement;
19 @XmlAccessorType(XmlAccessType.NONE)
20 public abstract class NeutronBaseAttributes<T extends NeutronBaseAttributes> extends NeutronObject<T>
21 implements Serializable, INeutronBaseAttributes<T> {
22 private static final long serialVersionUID = 1L;
24 @XmlElement(name = "name")
27 public NeutronBaseAttributes() {
31 public String getName() {
36 public void setName(String name) {
41 protected boolean extractField(String field, T ans) {
44 ans.setName(this.getName());
47 return super.extractField(field, ans);