Fix checkstyle
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / INeutronObject.java
index a6d4bfdb149a42d79326a0d8933254c706467639..2176b8ada4f06c66d2b5e4de638d9b7bcb7983de 100644 (file)
@@ -1,19 +1,39 @@
 /*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- *  Authors : Dave Tucker
  */
-
 package org.opendaylight.neutron.spi;
 
+import java.util.List;
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
+
 /**
- * This class contains behaviour common to Neutron configuration objects
+ * This class contains behaviour common to Neutron configuration objects.
  */
-public interface INeutronObject {
-    public String getID();
-    public void setID(String id);
+public interface INeutronObject<T extends INeutronObject<T>> {
+
+    String getID();
+
+    void setID(String id);
+
+    String getTenantID();
+
+    void setTenantID(String tenantID);
+
+    void setTenantID(Uuid tenantID);
+
+    String getProjectID();
+
+    void setProjectID(String projectID);
+
+    Long getRevisionNumber();
+
+    void setRevisionNumber(Long revisionNumber);
+
+    void initDefaults();
+
+    T extractFields(List<String> fields);
 }