Class AugmentableCodecDataObject<T extends DataObject & Augmentable<T>>
java.lang.Object
org.opendaylight.yangtools.binding.data.codec.impl.CodecDataObject<T>
org.opendaylight.yangtools.binding.data.codec.impl.AugmentableCodecDataObject<T>
- Type Parameters:
T
- DataObject type
- All Implemented Interfaces:
Augmentable<T>
,BindingContract<DataContainer>
,BindingObject
,DataContainer
,DataObject
public abstract class AugmentableCodecDataObject<T extends DataObject & Augmentable<T>>
extends CodecDataObject<T>
implements Augmentable<T>
A base class for
DataObject
s which are also Augmentable
, backed by DataObjectCodecContext
.
While this class is public, it not part of API surface and is an implementation detail. The only reason for it being
public is that it needs to be accessible by code generated at runtime.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AugmentableCodecDataObject
(CommonDataObjectCodecContext<T, ?> context, DataContainerNode data) -
Method Summary
Modifier and TypeMethodDescriptionfinal <A extends Augmentation<T>>
@Nullable Aaugmentation
(Class<A> augmentationType) Returns instance of augmentation, if present.final ImmutableMap
<Class<? extends Augmentation<T>>, Augmentation<T>> Returns map of all augmentations.Methods inherited from class org.opendaylight.yangtools.binding.data.codec.impl.CodecDataObject
codecEquals, codecHashCode, codecKey, codecMember, codecMember, codecMember, codecMemberOrEmpty, equals, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.binding.Augmentable
augmentationOrElseThrow, augmentationOrElseThrow
Methods inherited from interface org.opendaylight.yangtools.binding.DataObject
implementedInterface
-
Constructor Details
-
AugmentableCodecDataObject
protected AugmentableCodecDataObject(CommonDataObjectCodecContext<T, ?> context, DataContainerNode data)
-
-
Method Details
-
augmentation
Description copied from interface:Augmentable
Returns instance of augmentation, if present.- Specified by:
augmentation
in interfaceAugmentable<T extends DataObject & Augmentable<T>>
- Type Parameters:
A
- Type capture for augmentation type- Parameters:
augmentationType
- Type of augmentation to be returned- Returns:
- instance of
A
, ornull
if the augmentationType is not present
-
augmentations
Description copied from interface:Augmentable
Returns map of all augmentations.- Specified by:
augmentations
in interfaceAugmentable<T extends DataObject & Augmentable<T>>
- Returns:
- map of all augmentations.
-