Neutron Model update
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / INeutronObject.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.neutron.spi;
10
11 import java.util.List;
12
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
14
15 /**
16  * This class contains behaviour common to Neutron configuration objects.
17  */
18 public interface INeutronObject<T extends INeutronObject> {
19
20     String getID();
21
22     void setID(String id);
23
24     String getTenantID();
25
26     void setTenantID(String tenantID);
27
28     void setTenantID(Uuid tenantID);
29
30     String getProjectID();
31
32     void setProjectID(String projectID);
33
34     Long getRevisionNumber();
35
36     void setRevisionNumber(Long revisionNumber);
37
38     void initDefaults();
39
40     T extractFields(List<String> fields);
41 }