X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflowj_netty%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fprotocol%2Fvendor%2FOFBasicVendorDataType.java;fp=third-party%2Fopenflowj_netty%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fprotocol%2Fvendor%2FOFBasicVendorDataType.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=1f0e14b2dd4b6dac9f5dadc5d5c9e6a0b4a1a4a5;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflowj_netty/src/main/java/org/openflow/protocol/vendor/OFBasicVendorDataType.java b/third-party/openflowj_netty/src/main/java/org/openflow/protocol/vendor/OFBasicVendorDataType.java deleted file mode 100644 index 1f0e14b2..00000000 --- a/third-party/openflowj_netty/src/main/java/org/openflow/protocol/vendor/OFBasicVendorDataType.java +++ /dev/null @@ -1,71 +0,0 @@ -/** -* Copyright 2011, Big Switch Networks, Inc. -* Originally created by David Erickson & Rob Sherwood, Stanford University -* -* Licensed under the Apache License, Version 2.0 (the "License"); you may -* not use this file except in compliance with the License. You may obtain -* a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -* License for the specific language governing permissions and limitations -* under the License. -**/ - -package org.openflow.protocol.vendor; - -import org.openflow.protocol.Instantiable; - -/** - * Subclass of OFVendorDataType that works with any vendor data format that - * begins with a integral value to indicate the format of the remaining data. - * It maps from the per-vendor-id integral data type code to the object - * used to instantiate the class associated with that vendor data type. - * - * @author Rob Vaterlaus (rob.vaterlaus@bigswitch.com) - */ -public class OFBasicVendorDataType extends OFVendorDataType { - - /** - * The data type value at the beginning of the vendor data. - */ - protected long type; - - /** - * Construct an empty (i.e. no specified data type value) vendor data type. - */ - public OFBasicVendorDataType() { - super(); - this.type = 0; - } - - /** - * Store some information about the vendor data type, including wire protocol - * type number, derived class and instantiator. - * - * @param type Wire protocol number associated with this vendor data type - * @param instantiator An Instantiator implementation that - * creates an instance of an appropriate subclass of OFVendorData. - */ - public OFBasicVendorDataType(long type, Instantiable instantiator) { - super(instantiator); - this.type = type; - } - - /** - * @return Returns the wire protocol value corresponding to this OFVendorDataType - */ - public long getTypeValue() { - return this.type; - } - - /** - * @param type the wire protocol value for this data type - */ - public void setTypeValue(long type) { - this.type = type; - } -}