Class GroupingLooseResolver<G extends org.opendaylight.yangtools.binding.Grouping>

java.lang.Object
org.opendaylight.openflowplugin.extension.api.GroupingLooseResolver<G>
Type Parameters:
G - grouping

public class GroupingLooseResolver<G extends org.opendaylight.yangtools.binding.Grouping> extends Object
Provides augmentation resolving upon given Augmentable. Used Augmentations do not share Augmentable.
Usage: in case there are multiple Augmentable classes which might contain corresponding Augmentations (1:1..n binding). And those Augmentations are sharing the same grouping so that they could be processed in the same way.
  • Constructor Details

    • GroupingLooseResolver

      @SafeVarargs public GroupingLooseResolver(Class<G> commonInterface, Class<? extends org.opendaylight.yangtools.binding.Augmentation<?>>... classes)
      Constructor.
      Parameters:
      commonInterface - common interface
  • Method Details

    • getClasses

      public Set<Class<? extends org.opendaylight.yangtools.binding.Augmentation<?>>> getClasses()
      Get augmentation classes.
      Returns:
      list of augmentation classes
    • getExtension

      public Optional<G> getExtension(org.opendaylight.yangtools.binding.DataContainer data)
      Gets the extension for the give data.
      Parameters:
      data - parameter(data) for getExtension
      Returns:
      shared grouping