blob: 49be81c2208e59cc0b7505120108863e123f2cef [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
17package org.onosproject.yangutils.translator.tojava.utils;
18
19/**
20 * Representation of plugin configurations required for YANG utils.
21 */
22public final class YangPluginConfig {
23
24 /**
25 * Creates an object for YANG plugin config.
26 */
27 public YangPluginConfig() {
28 }
29
30 /**
31 * Contains the code generation directory.
32 */
33 private String codeGenDir;
34
35 /**
36 * Contains information of naming conflicts that can be resolved.
37 */
38 private YangToJavaNamingConflictUtil conflictResolver;
39
40 /**
41 * Sets the path of the java code where it has to be generated.
42 *
43 * @param codeGenDir path of the directory
44 */
45 public void setCodeGenDir(String codeGenDir) {
46 this.codeGenDir = codeGenDir;
47 }
48
49 /**
50 * Returns the code generation directory path.
51 *
52 * @return code generation directory
53 */
54 public String getCodeGenDir() {
55 return codeGenDir;
56 }
57
58 /**
59 * Sets the object.
60 *
61 * @param conflictResolver object of the class
62 */
63 public void setConflictResolver(YangToJavaNamingConflictUtil conflictResolver) {
64 this.conflictResolver = conflictResolver;
65 }
66
67 /**
68 * Returns the object.
69 *
70 * @return object of the class
71 */
72 public YangToJavaNamingConflictUtil getConflictResolver() {
73 return conflictResolver;
74 }
75}