commit | c34b9441e65e170cbdb2dcc2da5ee5effd54515a | [log] [tgz] |
---|---|---|
author | Bharat saraswal <bharat.saraswal@huawei.com> | Mon Mar 28 15:50:13 2016 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Mar 28 18:15:16 2016 +0000 |
tree | 03c90dd2ca9042341f1a33c8e9c749a92c1ec16c | |
parent | f6ccc976a911b12e9b28fd50b10ecb7ea3670689 [diff] [blame] |
UT test cases fixes in YANG translator. Change-Id: I8408280c663dda016956b76db27285f466f24fad
diff --git a/src/main/java/org/onosproject/yangutils/translator/tojava/JavaAttributeInfo.java b/src/main/java/org/onosproject/yangutils/translator/tojava/JavaAttributeInfo.java index 7989255..24a0daa 100644 --- a/src/main/java/org/onosproject/yangutils/translator/tojava/JavaAttributeInfo.java +++ b/src/main/java/org/onosproject/yangutils/translator/tojava/JavaAttributeInfo.java
@@ -63,6 +63,21 @@ } /** + * Construct object of java attribute info. + * + * @param attrType YANG type + * @param name attribute name + * @param isListAttr is list attribute + * @param isQualifiedName is qualified name + */ + public JavaAttributeInfo(YangType<?> attrType, String name, boolean isListAttr, boolean isQualifiedName) { + this.attrType = attrType; + this.name = name; + this.isListAttr = isListAttr; + this.isQualifiedName = isQualifiedName; + } + + /** * Get the data type info of attribute. * * @return the data type info of attribute