/*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
- * This program and the accompanying materials are made available under the terms of the Eclipse
- * Public License v1.0 which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.controller.md.sal.binding.impl;
-import com.google.common.base.Optional;
import java.util.Collection;
import java.util.Map;
-import org.opendaylight.yangtools.binding.data.codec.impl.BindingNormalizedNodeCodecRegistry;
+import java.util.Optional;
+import org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
private final NodeIdentifier identifier;
private final DataObject bindingData;
- private BindingNormalizedNodeCodecRegistry registry;
+ private BindingNormalizedNodeSerializer registry;
private ContainerNode domData;
private LazySerializedContainerNode(final QName identifier, final DataObject binding,
- final BindingNormalizedNodeCodecRegistry registry) {
+ final BindingNormalizedNodeSerializer registry) {
this.identifier = new NodeIdentifier(identifier);
this.bindingData = binding;
this.registry = registry;
}
static NormalizedNode<?, ?> create(final SchemaPath rpcName, final DataObject data,
- final BindingNormalizedNodeCodecRegistry codec) {
+ final BindingNormalizedNodeSerializer codec) {
return new LazySerializedContainerNode(rpcName.getLastComponent(), data, codec);
}
static NormalizedNode<?, ?> withContextRef(final SchemaPath rpcName, final DataObject data,
- final LeafNode<?> contextRef, final BindingNormalizedNodeCodecRegistry codec) {
+ final LeafNode<?> contextRef, final BindingNormalizedNodeSerializer codec) {
return new WithContextRef(rpcName.getLastComponent(), data, contextRef, codec);
}
private final LeafNode<?> contextRef;
protected WithContextRef(final QName identifier, final DataObject binding, final LeafNode<?> contextRef,
- final BindingNormalizedNodeCodecRegistry registry) {
+ final BindingNormalizedNodeSerializer registry) {
super(identifier, binding, registry);
this.contextRef = contextRef;
}