4e3bb5e82fedf2d9a0d913548292086413b95930
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / transformer / NormalizedNodePruner.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.datastore.node.utils.transformer;
9
10 import java.net.URI;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
13 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
14
15 /**
16  * The NormalizedNodePruner removes all nodes from the input NormalizedNode that do not have a corresponding
17  * schema element in the passed in SchemaContext.
18  *
19  * @deprecated Use {@link AbstractNormalizedNodePruner} instead.
20  */
21 @Deprecated
22 public class NormalizedNodePruner extends AbstractNormalizedNodePruner {
23     public static final URI BASE_NAMESPACE = URI.create("urn:ietf:params:xml:ns:netconf:base:1.0");
24
25     public NormalizedNodePruner(final YangInstanceIdentifier nodePath, final SchemaContext schemaContext) {
26         super(schemaContext);
27         initialize(nodePath);
28     }
29
30     public NormalizedNode<?, ?> normalizedNode() {
31         return normalizedNode;
32     }
33 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.