X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2FStructuredData.java;h=231fe7e02eedfdee29d2996a7d0ebc4839f73646;hb=48814d6a264b8f13e5db1422336d9ef25cb05fa9;hp=62a9ae05814b3a2d7a7d259c0811d484c580f99e;hpb=144c567aa78ca4f6ea6279163b3a8ba8d5de0dc2;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/StructuredData.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/StructuredData.java index 62a9ae0581..231fe7e02e 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/StructuredData.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/StructuredData.java @@ -1,16 +1,26 @@ +/* + * Copyright (c) 2014 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 + */ package org.opendaylight.controller.sal.restconf.impl; +import org.opendaylight.controller.sal.core.api.mount.MountInstance; import org.opendaylight.yangtools.yang.data.api.CompositeNode; -import org.opendaylight.yangtools.yang.model.api.*; +import org.opendaylight.yangtools.yang.model.api.DataSchemaNode; public class StructuredData { private final CompositeNode data; private final DataSchemaNode schema; + private final MountInstance mountPoint; - public StructuredData(CompositeNode data, DataSchemaNode schema) { + public StructuredData(final CompositeNode data, final DataSchemaNode schema, final MountInstance mountPoint) { this.data = data; this.schema = schema; + this.mountPoint = mountPoint; } public CompositeNode getData() { @@ -20,4 +30,8 @@ public class StructuredData { public DataSchemaNode getSchema() { return schema; } + + public MountInstance getMountPoint() { + return mountPoint; + } }