import org.opendaylight.mdsal.binding.runtime.api.AugmentRuntimeType;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.Item;
-import org.opendaylight.yangtools.yang.common.QNameModule;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
-final class AugmentationCodecPrototype extends DataContainerCodecPrototype<AugmentRuntimeType> {
+final class AugmentationCodecPrototype extends CommonDataObjectCodecPrototype<AugmentRuntimeType> {
private final @NonNull ImmutableSet<NodeIdentifier> childArgs;
@SuppressWarnings("unchecked")
- AugmentationCodecPrototype(final Class<?> cls, final QNameModule namespace, final AugmentRuntimeType type,
- final CodecContextFactory factory, final ImmutableSet<NodeIdentifier> childArgs) {
- super(Item.of((Class<? extends DataObject>) cls), namespace, type, factory);
+ AugmentationCodecPrototype(final Class<?> cls, final AugmentRuntimeType type, final CodecContextFactory factory,
+ final ImmutableSet<NodeIdentifier> childArgs) {
+ super(Item.of((Class<? extends DataObject>) cls), type, factory);
this.childArgs = requireNonNull(childArgs);
}
@Override
- NodeIdentifier getYangArg() {
+ NodeIdentifier yangArg() {
throw new UnsupportedOperationException("Augmentation does not have PathArgument address");
}
@Override
- AugmentationNodeContext<?> createInstance() {
- return new AugmentationNodeContext<>(this);
+ AugmentationCodecContext<?> createInstance() {
+ return new AugmentationCodecContext<>(this);
}
// Guaranteed to be non-empty