Class GroupingLooseResolver<G>
java.lang.Object
org.opendaylight.openflowplugin.extension.api.GroupingLooseResolver<G>
- Type Parameters:
G
- grouping
Provides augmentation resolving upon given
Usage: in case there are multiple
Augmentable
.
Used Augmentation
s do not share Augmentable
.
Usage: in case there are multiple
Augmentable
classes which might contain
corresponding Augmentation
s (1:1..n binding). And those Augmentation
s
are sharing the same grouping so that they could be processed in the same way.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds an augmentation class.Get augmentation classes.getExtension
(org.opendaylight.yangtools.yang.binding.DataObject data) Gets the extension for the give data.
-
Constructor Details
-
GroupingLooseResolver
Constructor.- Parameters:
commonInterface
- common interface
-
-
Method Details
-
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
-