Fix checkstyle
[openflowplugin.git] / extension / openflowjava-extension-nicira-api / src / main / java / org / opendaylight / openflowjava / nx / api / NiciraExtensionCodecRegistrator.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  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 package org.opendaylight.openflowjava.nx.api;
9
10 import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
11 import org.opendaylight.openflowjava.protocol.api.extensibility.OFSerializer;
12 import org.opendaylight.openflowjava.protocol.api.keys.MatchEntryDeserializerKey;
13 import org.opendaylight.openflowjava.protocol.api.keys.MatchEntrySerializerKey;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.actions.grouping.Action;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OxmClassBase;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry;
18
19 /**
20  * Registry for Nicira extension codecs.
21  *
22  * @author msunal
23  */
24 public interface NiciraExtensionCodecRegistrator extends AutoCloseable {
25
26     void registerActionDeserializer(NiciraActionDeserializerKey key, OFDeserializer<Action> deserializer);
27
28     void unregisterActionDeserializer(NiciraActionDeserializerKey key);
29
30     void registerActionSerializer(NiciraActionSerializerKey key, OFSerializer<Action> serializer);
31
32     void unregisterActionSerializer(NiciraActionSerializerKey key);
33
34     void registerMatchEntryDeserializer(MatchEntryDeserializerKey key, OFDeserializer<MatchEntry> deserializer);
35
36     void unregisterMatchEntryDeserializer(MatchEntryDeserializerKey key);
37
38     void registerMatchEntrySerializer(MatchEntrySerializerKey<? extends OxmClassBase, ? extends MatchField> key,
39             OFSerializer<MatchEntry> serializer);
40
41     void unregisterMatchEntrySerializer(MatchEntrySerializerKey<? extends OxmClassBase, ? extends MatchField> key);
42
43 }