commit | d6f1241c2473e7bb6ba706801ba045dab6d77bda | [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 | 294a4b3be64266549374d177ff130c02a4015019 | |
parent | 6f74371b5e17b45f6f975c52166c16bdeb03548a [diff] [blame] |
UT test cases fixes in YANG translator. Change-Id: I8408280c663dda016956b76db27285f466f24fad
diff --git a/utils/yangutils/src/main/java/org/onosproject/yangutils/translator/tojava/JavaAttributeInfo.java b/utils/yangutils/src/main/java/org/onosproject/yangutils/translator/tojava/JavaAttributeInfo.java index 7989255..24a0daa 100644 --- a/utils/yangutils/src/main/java/org/onosproject/yangutils/translator/tojava/JavaAttributeInfo.java +++ b/utils/yangutils/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