Class GroupingLooseResolver<G>
- java.lang.Object
-
- org.opendaylight.openflowplugin.extension.api.GroupingLooseResolver<G>
-
- Type Parameters:
G- grouping
public class GroupingLooseResolver<G> extends Object
Provides augmentation resolving upon givenAugmentable. UsedAugmentations do not shareAugmentable.
Usage: in case there are multipleAugmentableclasses which might contain correspondingAugmentations (1:1..n binding). And thoseAugmentations are sharing the same grouping so that they could be processed in the same way.
-
-
Constructor Summary
Constructors Constructor Description GroupingLooseResolver(Class<G> commonInterface)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupingLooseResolver<G>add(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<?>> cls)Adds an augmentation class.Set<Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<?>>>getClasses()Get augmentation classes.<T extends org.opendaylight.yangtools.yang.binding.Augmentable<T>>
Optional<G>getExtension(org.opendaylight.yangtools.yang.binding.DataObject data)Gets the extension for the give data.
-
-
-
Method Detail
-
getClasses
public Set<Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<?>>> getClasses()
Get augmentation classes.- Returns:
- list of augmentation classes
-
add
public GroupingLooseResolver<G> add(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<?>> cls)
Adds an augmentation class.- Parameters:
cls- equivalent augmentation class- Returns:
- this for chaining
-
getExtension
public <T extends org.opendaylight.yangtools.yang.binding.Augmentable<T>> Optional<G> getExtension(org.opendaylight.yangtools.yang.binding.DataObject data)
Gets the extension for the give data.- Type Parameters:
T- type of data- Parameters:
data- parameter(data) for getExtension- Returns:
- shared grouping
-
-