Extension support - easy lookup for toOFJava
[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.rev130731.actions.grouping.Action;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev130731.MatchField;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev130731.OxmClassBase;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev130731.oxm.fields.grouping.MatchEntries;
18
19 /**
20  * @author msunal
21  *
22  */
23 public interface NiciraExtensionCodecRegistrator {
24
25     void registerActionDeserializer(NiciraActionDeserializerKey key, OFDeserializer<Action> deserializer);
26
27     void unregisterActionDeserializer(NiciraActionDeserializerKey key);
28
29     void registerActionSerializer(NiciraActionSerializerKey key, OFSerializer<Action> serializer);
30
31     void unregisterActionSerializer(NiciraActionSerializerKey key);
32
33     void registerMatchEntryDeserializer(MatchEntryDeserializerKey key, OFDeserializer<MatchEntries> deserializer);
34
35     void unregisterMatchEntryDeserializer(MatchEntryDeserializerKey key);
36
37     void registerMatchEntrySerializer(MatchEntrySerializerKey<? extends OxmClassBase, ? extends MatchField> key,
38             OFSerializer<MatchEntries> serializer);
39
40     void unregisterMatchEntrySerializer(MatchEntrySerializerKey<? extends OxmClassBase, ? extends MatchField> key);
41
42 }