blob: 3ae9686c48c25cd608595e759d9b1d56562fabc2 [file] [log] [blame]
sonu guptaeff184b2016-11-24 12:43:49 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
sonu guptaeff184b2016-11-24 12:43:49 +05303 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.yms.app.ydt;
18
19import org.onosproject.yangutils.datamodel.YangNamespace;
20
21class NameSpace implements YangNamespace {
22
23 /*
24 * Reference for namespace.
25 */
26 private final String nameSpace;
27
28 /**
29 * Creates an instance of namespace which is used to initialize the
30 * nameSpace for requested YDT node.
31 *
32 * @param nameSpace namespace of the requested node
33 */
34 public NameSpace(String nameSpace) {
35 this.nameSpace = nameSpace;
36 }
37
38 @Override
39 public String getModuleNamespace() {
40 return nameSpace;
41 }
42
43 @Override
44 public String getModuleName() {
45 return nameSpace;
46 }
47}