2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.binding.dom.codec.impl;
10 import org.opendaylight.mdsal.binding.runtime.api.AugmentRuntimeType;
11 import org.opendaylight.yangtools.yang.binding.Augmentation;
12 import org.opendaylight.yangtools.yang.binding.DataObject;
13 import org.opendaylight.yangtools.yang.data.api.schema.AugmentationNode;
14 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
16 final class AugmentationNodeContext<D extends DataObject & Augmentation<?>>
17 extends DataObjectCodecContext<D, AugmentRuntimeType> {
18 AugmentationNodeContext(final DataContainerCodecPrototype<AugmentRuntimeType> prototype) {
23 public D deserialize(final NormalizedNode data) {
24 return createBindingProxy(checkDataArgument(AugmentationNode.class, data));
28 protected Object deserializeObject(final NormalizedNode normalizedNode) {
29 return deserialize(normalizedNode);