[ONOS-4922] Javamodel package creation for YANG utils.
Change-Id: Iff1745a8c04881b44db3f2f687967f984c38e2c7
diff --git a/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/JavaDocGen.java b/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/JavaDocGen.java
index af0b4e3..a674f17 100644
--- a/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/JavaDocGen.java
+++ b/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/JavaDocGen.java
@@ -16,6 +16,8 @@
package org.onosproject.yangutils.utils.io.impl;
+import org.onosproject.yangutils.datamodel.javadatamodel.YangPluginConfig;
+
import static org.onosproject.yangutils.utils.UtilConstants.AUGMENTED;
import static org.onosproject.yangutils.utils.UtilConstants.JAVA_DOC_FOR_VALIDATOR;
import static org.onosproject.yangutils.utils.UtilConstants.JAVA_DOC_FOR_VALIDATOR_RETURN;
diff --git a/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangIoUtils.java b/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangIoUtils.java
index 566e9ce..0c6b51e 100644
--- a/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangIoUtils.java
+++ b/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangIoUtils.java
@@ -30,6 +30,8 @@
import java.util.regex.Pattern;
import org.apache.commons.io.FileUtils;
+import org.onosproject.yangutils.datamodel.javadatamodel.YangPluginConfig;
+import org.onosproject.yangutils.datamodel.javadatamodel.YangToJavaNamingConflictUtil;
import org.onosproject.yangutils.translator.exception.TranslatorException;
import static org.onosproject.yangutils.utils.UtilConstants.COLAN;
diff --git a/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangPluginConfig.java b/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangPluginConfig.java
deleted file mode 100644
index 963bb8d..0000000
--- a/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangPluginConfig.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * 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.utils.io.impl;
-
-/**
- * Representation of plugin configurations required for YANG utils.
- */
-public final class YangPluginConfig {
-
- /**
- * Contains the code generation directory.
- */
- private String codeGenDir;
-
- /**
- * Contains the code generation directory.
- */
- private String managerCodeGenDir;
-
- /**
- * Contains information of naming conflicts that can be resolved.
- */
- private YangToJavaNamingConflictUtil conflictResolver;
-
- /**
- * Creates an object for YANG plugin config.
- */
- public YangPluginConfig() {
- }
-
- /**
- * Java code generation is for sbi.
- */
- private String codeGenerateForsbi;
-
- /**
- * Returns the string for code generation.
- *
- * @return returns the string for code generation.
- */
- public String getCodeGenerateForsbi() {
- return codeGenerateForsbi;
- }
-
- /**
- * Sets the string sbi or nbi for code generation.
- *
- * @param codeGenerateForsbi generation is for sbi
- */
- public void setCodeGenerateForsbi(String codeGenerateForsbi) {
- this.codeGenerateForsbi = codeGenerateForsbi;
- }
-
- /**
- * Sets the path of the java code where it has to be generated.
- *
- * @param codeGenDir path of the directory
- */
- public void setCodeGenDir(String codeGenDir) {
- this.codeGenDir = codeGenDir;
- }
-
- /**
- * Returns the code generation directory path.
- *
- * @return code generation directory
- */
- public String getCodeGenDir() {
- return codeGenDir;
- }
-
- /**
- * Sets the object.
- *
- * @param conflictResolver object of the class
- */
- public void setConflictResolver(YangToJavaNamingConflictUtil conflictResolver) {
- this.conflictResolver = conflictResolver;
- }
-
- /**
- * Returns the object.
- *
- * @return object of the class
- */
- public YangToJavaNamingConflictUtil getConflictResolver() {
- return conflictResolver;
- }
-
- /**
- * Returns manager's code generation directory.
- *
- * @return manager's code generation directory
- */
- public String getManagerCodeGenDir() {
- return managerCodeGenDir;
- }
-
- /**
- * Sets manager's code generation directory.
- *
- * @param moduleCodeGenDir manager's code generation directory
- */
- public void setManagerCodeGenDir(String moduleCodeGenDir) {
- this.managerCodeGenDir = moduleCodeGenDir;
- }
-}
diff --git a/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangToJavaNamingConflictUtil.java b/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangToJavaNamingConflictUtil.java
deleted file mode 100644
index d7b32e9..0000000
--- a/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangToJavaNamingConflictUtil.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * 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.utils.io.impl;
-
-/**
- * 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;
-
- /**
- * Contains the prefix value for adding with the identifier.
- */
- private static String prefixForIdentifier;
-
- /**
- * 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;
- }
-
- /**
- * Sets the prefix value for adding with the identifier.
- *
- * @param prefix prefix for identifier
- */
- public void setPrefixForIdentifier(String prefix) {
- prefixForIdentifier = prefix;
- }
-
- /**
- * Returns the prefix for identifier.
- *
- * @return prefix for identifier
- */
- public String getPrefixForIdentifier() {
- return prefixForIdentifier;
- }
-}