blob: bfb0d05a2e5f60745b7ca9c39de194f48ec56977 [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 YANG to java naming conflict resolver util.
21 */
22public final class YangToJavaNamingConflictUtil {
23
24 /**
25 * Contains the replacement value for a period.
26 */
27 private static String replacementForPeriodInIdentifier;
28
29 /**
30 * Contains the replacement value for an underscore.
31 */
32 private static String replacementForUnderscoreInIdentifier;
33
34 /**
35 * Contains the replacement value for a hyphen.
36 */
37 private static String replacementForHyphenInIdentifier;
38
39 /**
40 * Creates an object for YANG to java naming conflict util.
41 */
42 public YangToJavaNamingConflictUtil() {
43 }
44
45 /**
46 * Sets the replacement value for a period.
47 *
48 * @param periodReplacement replacement value for period
49 */
50 public void setReplacementForPeriod(String periodReplacement) {
51 replacementForPeriodInIdentifier = periodReplacement;
52 }
53
54 /**
55 * Returns the replaced period value.
56 *
57 * @return replaced period
58 */
59 public String getReplacementForPeriod() {
60 return replacementForPeriodInIdentifier;
61 }
62
63 /**
64 * Sets the replacement value for a hyphen.
65 *
66 * @param hyphenReplacement replacement value for hyphen
67 */
68 public void setReplacementForHyphen(String hyphenReplacement) {
69 replacementForHyphenInIdentifier = hyphenReplacement;
70 }
71
72 /**
73 * Returns the replaced hyphen value.
74 *
75 * @return replaced hyphen
76 */
77 public String getReplacementForHyphen() {
78 return replacementForHyphenInIdentifier;
79 }
80
81 /**
82 * Sets the replacement value for an underscore.
83 *
84 * @param underscoreReplacement replacement value for underscore
85 */
86 public void setReplacementForUnderscore(String underscoreReplacement) {
87 replacementForUnderscoreInIdentifier = underscoreReplacement;
88 }
89
90 /**
91 * Returns the replaced underscore value.
92 *
93 * @return replaced underscore
94 */
95 public String getReplacementForUnderscore() {
96 return replacementForUnderscoreInIdentifier;
97 }
98}