blob: d7ef5a215c707f3f477574ed40bad5e3ca2d252c [file] [log] [blame]
janani bde4ffab2016-04-15 16:18:30 +05301/*
2 * Copyright 2016-present 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
Gaurav Agrawal8a5af142016-06-15 13:58:01 +053017package org.onosproject.yangutils.utils.io.impl;
janani bde4ffab2016-04-15 16:18:30 +053018
19/**
20 * Representation of plugin configurations required for YANG utils.
21 */
22public final class YangPluginConfig {
23
24 /**
janani bde4ffab2016-04-15 16:18:30 +053025 * Contains the code generation directory.
26 */
27 private String codeGenDir;
28
29 /**
Bharat saraswalb1170bd2016-07-14 13:26:18 +053030 * Contains the code generation directory.
31 */
32 private String managerCodeGenDir;
33
34 /**
janani bde4ffab2016-04-15 16:18:30 +053035 * Contains information of naming conflicts that can be resolved.
36 */
37 private YangToJavaNamingConflictUtil conflictResolver;
38
39 /**
Vidyashree Rama7142d9c2016-04-26 15:06:06 +053040 * Creates an object for YANG plugin config.
41 */
42 public YangPluginConfig() {
43 }
44
45 /**
janani bde4ffab2016-04-15 16:18:30 +053046 * Sets the path of the java code where it has to be generated.
47 *
48 * @param codeGenDir path of the directory
49 */
50 public void setCodeGenDir(String codeGenDir) {
51 this.codeGenDir = codeGenDir;
52 }
53
54 /**
55 * Returns the code generation directory path.
56 *
57 * @return code generation directory
58 */
59 public String getCodeGenDir() {
60 return codeGenDir;
61 }
62
63 /**
64 * Sets the object.
65 *
66 * @param conflictResolver object of the class
67 */
68 public void setConflictResolver(YangToJavaNamingConflictUtil conflictResolver) {
69 this.conflictResolver = conflictResolver;
70 }
71
72 /**
73 * Returns the object.
74 *
75 * @return object of the class
76 */
77 public YangToJavaNamingConflictUtil getConflictResolver() {
78 return conflictResolver;
79 }
Bharat saraswalb1170bd2016-07-14 13:26:18 +053080
81 /**
82 * Returns manager's code generation directory.
83 *
84 * @return manager's code generation directory
85 */
86 public String getManagerCodeGenDir() {
87 return managerCodeGenDir;
88 }
89
90 /**
91 * Sets manager's code generation directory.
92 *
93 * @param moduleCodeGenDir manager's code generation directory
94 */
95 public void setManagerCodeGenDir(String moduleCodeGenDir) {
96 this.managerCodeGenDir = moduleCodeGenDir;
97 }
janani bde4ffab2016-04-15 16:18:30 +053098}