Merge "Fixed for bug : 1171 - issue while creating subnet"
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / main / java / org / opendaylight / controller / sal / restconf / impl / InstanceIdWithSchemaNode.java
1 /*
2  * Copyright (c) 2014 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.sal.restconf.impl;
9
10 import org.opendaylight.controller.sal.core.api.mount.MountInstance;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
12 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
13
14 public class InstanceIdWithSchemaNode {
15
16     private final YangInstanceIdentifier instanceIdentifier;
17     private final DataSchemaNode schemaNode;
18     private final MountInstance mountPoint;
19
20     public InstanceIdWithSchemaNode(YangInstanceIdentifier instanceIdentifier, DataSchemaNode schemaNode,
21             MountInstance mountPoint) {
22         this.instanceIdentifier = instanceIdentifier;
23         this.schemaNode = schemaNode;
24         this.mountPoint = mountPoint;
25     }
26
27     public YangInstanceIdentifier getInstanceIdentifier() {
28         return instanceIdentifier;
29     }
30
31     public DataSchemaNode getSchemaNode() {
32         return schemaNode;
33     }
34
35     public MountInstance getMountPoint() {
36         return mountPoint;
37     }
38
39 }