blob: 2f7839b780fdd377650e8cafebf1fa5d37db8094 [file] [log] [blame]
Gaurav Agrawalbd804472016-03-25 11:25:36 +05301/*
2 * Copyright 2016 Open Networking Laboratory
3 *
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.yangutils.datamodel;
18
19/**
20 * YANG node identifier which is a combination of prefix and name.
21 */
22public class YangNodeIdentifier {
23
24 // Name of the node.
25 String name;
26
27 // Prefix of the node.
28 String prefix;
29
30 /**
31 * Creates an instance of YANG node identifier.
32 */
33 public YangNodeIdentifier() {
34 }
35
36 /**
37 * Returns name of the node identifier.
38 *
39 * @return name of the node identifier
40 */
41 public String getName() {
42 return name;
43 }
44
45 /**
46 * Set name of the node identifier.
47 *
Gaurav Agrawald9d6cc82016-03-29 02:17:23 +053048 * @param name name of the node identifier
Gaurav Agrawalbd804472016-03-25 11:25:36 +053049 */
50 public void setName(String name) {
51 this.name = name;
52 }
53
54 /**
55 * Returns prefix of the node identifier.
56 *
Gaurav Agrawald9d6cc82016-03-29 02:17:23 +053057 * @return name of the node identifier
Gaurav Agrawalbd804472016-03-25 11:25:36 +053058 */
59 public String getPrefix() {
60 return prefix;
61 }
62
63 /**
64 * Set prefix of the node identifier.
65 *
66 * @param prefix prefix of the node identifier
67 */
68 public void setPrefix(String prefix) {
69 this.prefix = prefix;
70 }
71}