Code ReOrganization and Re-Architecture changes
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / table / Table.java
1 /*
2  * Copyright (C) 2013 Ebay Software Foundation
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  * Authors : Ashwin Raveendran
9  */
10 package org.opendaylight.ovsdb.lib.table;
11
12 public abstract class Table<E extends Table> {
13     public abstract Name<E> getTableName();
14     @Override
15     public abstract String toString();
16     public Column<E> getColumns() {
17         return null;
18     }
19
20     public static abstract class Name<E extends Table> {
21         String name;
22
23         protected Name(String name) {
24             this.name = name;
25         }
26
27         public String getName() {
28             return name;
29         }
30
31         @Override
32         public String toString() {
33             return "Table:" + name;
34         }
35     }
36 }