java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.ConvertorCase<F,T,D>
Type Parameters:
F - the source type
T - the result type
D - the data type
Direct Known Subclasses:
ApplyActionsCase, ClearActionsCase, GoToTableCase, MeterCase, OfToSalArpOpCase, OfToSalArpShaCase, OfToSalArpSpaCase, OfToSalArpThaCase, OfToSalArpTpaCase, OfToSalCopyTtlInCase, OfToSalCopyTtlOutCase, OfToSalDecMplsTtlCase, OfToSalDecNwTtlCase, OfToSalEthDstCase, OfToSalEthSrcCase, OfToSalEthTypeCase, OfToSalExperimenterIdCase, OfToSalGroupCase, OfToSalIcmpv4CodeCase, OfToSalIcmpv4TypeCase, OfToSalIcmpv6CodeCase, OfToSalIcmpv6TypeCase, OfToSalInPhyPortCase, OfToSalInPortCase, OfToSalIpDscpCase, OfToSalIpEcnCase, OfToSalIpProtoCase, OfToSalIpv4DstCase, OfToSalIpv4SrcCase, OfToSalIpv6DstCase, OfToSalIpv6ExthdrCase, OfToSalIpv6FlabelCase, OfToSalIpv6NdSllCase, OfToSalIpv6NdTargetCase, OfToSalIpv6NdTllCase, OfToSalIpv6SrcCase, OfToSalMetadataCase, OfToSalMplsBosCase, OfToSalMplsLabelCase, OfToSalMplsTcCase, OfToSalOutputActionCase, OfToSalPacketTypeCase, OfToSalPbbIsidCase, OfToSalPopMplsCase, OfToSalPopPbbCase, OfToSalPopVlanCase, OfToSalPushMplsCase, OfToSalPushPbbCase, OfToSalPushVlanCase, OfToSalSctpDstCase, OfToSalSctpSrcCase, OfToSalSetDlDstCase, OfToSalSetDlSrcCase, OfToSalSetFieldCase, OfToSalSetMplsTtlCase, OfToSalSetNwDstCase, OfToSalSetNwSrcCase, OfToSalSetNwTosCase, OfToSalSetNwTtlCase, OfToSalSetQueueCase, OfToSalSetTpDstCase, OfToSalSetTpSrcCase, OfToSalSetVlanIdCase, OfToSalSetVlanPcpCase, OfToSalStripVlanCase, OfToSalTcpDstCase, OfToSalTcpSrcCase, OfToSalTunnelIdCase, OfToSalTunnelIpv4DstCase, OfToSalTunnelIpv4SrcCase, OfToSalUdpDstCase, OfToSalUdpSrcCase, OfToSalVlanPcpCase, OfToSalVlanVidCase, SalToOfArpMatchCase, SalToOfCopyTtlInCase, SalToOfCopyTtlOutCase, SalToOfDecMplsTtlCase, SalToOfDecNwTtlCase, SalToOfDropActionCase, SalToOfGeneralExtensionGroupingCase, SalToOfGroupActionCase, SalToOfIpv4MatchArbitraryBitMaskCase, SalToOfIpv4MatchCase, SalToOfIpv6MatchArbitraryBitMaskCase, SalToOfIpv6MatchCase, SalToOfOutputActionCase, SalToOfPopMplsActionCase, SalToOfPopPbbActionCase, SalToOfPopVlanActionCase, SalToOfPopVlanActionV10Case, SalToOfPushMplsActionCase, SalToOfPushPbbActionCase, SalToOfPushVlanActionCase, SalToOfSctpMatchCase, SalToOfSetDlDstActionCase, SalToOfSetDlDstActionV10Case, SalToOfSetDlSrcActionCase, SalToOfSetDlSrcActionV10Case, SalToOfSetFieldCase, SalToOfSetFieldV10Case, SalToOfSetMplsTtlActionCase, SalToOfSetNwDstActionCase, SalToOfSetNwDstActionV10Case, SalToOfSetNwSrcActionCase, SalToOfSetNwSrcActionV10Case, SalToOfSetNwTosActionCase, SalToOfSetNwTosActionV10Case, SalToOfSetNwTtlActionCase, SalToOfSetQueueActionCase, SalToOfSetTpDstActionCase, SalToOfSetTpDstActionV10Case, SalToOfSetTpSrcActionCase, SalToOfSetTpSrcActionV10Case, SalToOfSetVlanIdActionCase, SalToOfSetVlanIdActionV10Case, SalToOfSetVlanPcpActionCase, SalToOfSetVlanPcpActionV10Case, SalToOfStripVlanActionCase, SalToOfStripVlanActionV10Case, SalToOfTcpMatchCase, SalToOfTunnelIpv4MatchCase, SalToOfUdpMatchCase, SalToOfVendorCodecCase, WriteActionsCase, WriteMetadataCase

public abstract class ConvertorCase<F,T,D extends ConvertorData> extends Object
The Convertor case used in ConvertorProcessor.
  • Constructor Details

    • ConvertorCase

      protected ConvertorCase(Class<F> type, boolean errorOnEmpty, org.opendaylight.yangtools.yang.common.Uint8... supportedVersions)
      Instantiates a new Convertor case.
      Parameters:
      type - the type
      errorOnEmpty - the error on empty
      supportedVersions - the supported versions
  • Method Details

    • process

      public abstract Optional<T> process(@NonNull F source, D data, ConvertorExecutor convertorExecutor)
      Process source and return result, what can be empty.
      Parameters:
      source - the source
      data - the data
      convertorExecutor - convertor executor
      Returns:
      the optional