G - groupingT - Augmentablepublic class GroupingResolver<G,T extends org.opendaylight.yangtools.yang.binding.Augmentable<T>> extends Object
Augmentable.
Used classes share the same Augmentable.
Augmentable which might contain
multiple Augmentations depending on origin. And those Augmentations
are sharing the same grouping so that they could be processed in the same way.| Constructor and Description |
|---|
GroupingResolver(Class<G> commonInterface) |
| Modifier and Type | Method and Description |
|---|---|
<X extends org.opendaylight.yangtools.yang.binding.Augmentation<T>> |
add(Class<X> cls)
Adds an augmentation class.
|
com.google.common.base.Optional<G> |
getExtension(T data)
Gets the extension for the given data.
|
void |
setAugmentations(Set<Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<T>>> clses)
Sets the augmentation classes.
|
public <X extends org.opendaylight.yangtools.yang.binding.Augmentation<T>> GroupingResolver<G,T> add(Class<X> cls)
cls - equivalent augmentation classpublic void setAugmentations(Set<Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<T>>> clses)
clses - set of equivalent augmentation classesCopyright © 2019 OpenDaylight. All rights reserved.