3 * * Copyright (C) 2014 EBay Software Foundation
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
9 * * Authors : Ashwin Raveendran
13 package org.opendaylight.ovsdb.lib.notation;
16 import org.opendaylight.ovsdb.lib.schema.ColumnSchema;
17 import org.opendaylight.ovsdb.lib.schema.TableSchema;
20 public class Column<E extends TableSchema<E>, D> {
22 private ColumnSchema<E, D> schema;
25 public Column(ColumnSchema<E, D> schema, D d) {
30 public <E extends TableSchema<E>, T> T getData(ColumnSchema<E, T> schema) {
31 return schema.validate(data);
38 public void setData(D data) {
42 public ColumnSchema<E, D> getSchema() {
46 public void setSchema(ColumnSchema<E, D> schema) {