Class MatchEntrySerializerRegistryHelper<C extends OxmClassBase>

  • Type Parameters:
    C - OXM class

    public class MatchEntrySerializerRegistryHelper<C extends OxmClassBase>
    extends Object
    Helper class for registering match entry serializers.
    Author:
    michal.polkorab
    • Constructor Detail

      • MatchEntrySerializerRegistryHelper

        public MatchEntrySerializerRegistryHelper​(org.opendaylight.yangtools.yang.common.Uint8 version,
                                                  Class<C> generalClass,
                                                  SerializerRegistry serializerRegistry)
        Constructor.
        Parameters:
        version - Openflow wire version
        generalClass - class that will be used for match entry serializer registration
        serializerRegistry - registry to be filled with message serializers
    • Method Detail

      • registerSerializer

        public <F extends MatchField> void registerSerializer​(Class<F> specificClass,
                                                              OFGeneralSerializer serializer)
        Registers the given serializer.
        Parameters:
        specificClass - the MatchField class
        serializer - the serializer instance
      • registerExperimenterSerializer

        public <F extends MatchField> void registerExperimenterSerializer​(Class<F> specificClass,
                                                                          org.opendaylight.yangtools.yang.common.Uint32 expId,
                                                                          OFGeneralSerializer serializer)
        Registers ExperimenterClass type match serializer.
        Parameters:
        specificClass - the MatchField class
        serializer - the serializer instance