removed code duplication in translator, and addressed review comments
Change-Id: I27767a81c4bf279c80d2b98192f75f8f507b4457
diff --git a/src/main/java/org/onosproject/yangutils/translator/CachedFileHandle.java b/src/main/java/org/onosproject/yangutils/translator/CachedFileHandle.java
index 4d7e51b..4c2f808 100644
--- a/src/main/java/org/onosproject/yangutils/translator/CachedFileHandle.java
+++ b/src/main/java/org/onosproject/yangutils/translator/CachedFileHandle.java
@@ -29,31 +29,31 @@
/**
* Add a new attribute to the file(s).
*
- * @param attrType data type of the added attribute.
- * @param name name of the attribute.
+ * @param attrType data type of the added attribute
+ * @param name name of the attribute
* @param isListAttr if the current added attribute needs to be maintained
- * in a list.
+ * in a list
*/
void addAttributeInfo(YangType<?> attrType, String name, boolean isListAttr);
/**
* Flushes the cached contents to the target file, frees used resources.
*
- * @throws IOException when failes to generated java files.
+ * @throws IOException when failes to generated java files
*/
void close() throws IOException;
/**
- * Sets child package path for import.
- *
- * @param pkg child's package path
- */
- void setChildsPackage(String pkg);
-
- /**
* Sets directory package path for code generation.
*
* @param filePath directory package path for code generation
*/
- void setFilePath(String filePath);
+ void setRelativeFilePath(String filePath);
+
+ /**
+ * Gets directory package path for code generation.
+ *
+ * @return directory package path for code generation
+ */
+ String getRelativeFilePath();
}