| /* |
| * Copyright 2016-present Open Networking Laboratory |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| package org.onosproject.yangutils.translator.tojava.utils; |
| |
| /** |
| * Representation of YANG to java naming conflict resolver util. |
| */ |
| public final class YangToJavaNamingConflictUtil { |
| |
| /** |
| * Contains the replacement value for a period. |
| */ |
| private static String replacementForPeriodInIdentifier; |
| |
| /** |
| * Contains the replacement value for an underscore. |
| */ |
| private static String replacementForUnderscoreInIdentifier; |
| |
| /** |
| * Contains the replacement value for a hyphen. |
| */ |
| private static String replacementForHyphenInIdentifier; |
| |
| /** |
| * Creates an object for YANG to java naming conflict util. |
| */ |
| public YangToJavaNamingConflictUtil() { |
| } |
| |
| /** |
| * Sets the replacement value for a period. |
| * |
| * @param periodReplacement replacement value for period |
| */ |
| public void setReplacementForPeriod(String periodReplacement) { |
| replacementForPeriodInIdentifier = periodReplacement; |
| } |
| |
| /** |
| * Returns the replaced period value. |
| * |
| * @return replaced period |
| */ |
| public String getReplacementForPeriod() { |
| return replacementForPeriodInIdentifier; |
| } |
| |
| /** |
| * Sets the replacement value for a hyphen. |
| * |
| * @param hyphenReplacement replacement value for hyphen |
| */ |
| public void setReplacementForHyphen(String hyphenReplacement) { |
| replacementForHyphenInIdentifier = hyphenReplacement; |
| } |
| |
| /** |
| * Returns the replaced hyphen value. |
| * |
| * @return replaced hyphen |
| */ |
| public String getReplacementForHyphen() { |
| return replacementForHyphenInIdentifier; |
| } |
| |
| /** |
| * Sets the replacement value for an underscore. |
| * |
| * @param underscoreReplacement replacement value for underscore |
| */ |
| public void setReplacementForUnderscore(String underscoreReplacement) { |
| replacementForUnderscoreInIdentifier = underscoreReplacement; |
| } |
| |
| /** |
| * Returns the replaced underscore value. |
| * |
| * @return replaced underscore |
| */ |
| public String getReplacementForUnderscore() { |
| return replacementForUnderscoreInIdentifier; |
| } |
| } |