import java.text.DateFormat;\r
import java.text.ParseException;\r
import java.text.SimpleDateFormat;\r
+import java.util.ArrayList;\r
import java.util.Collections;\r
import java.util.Date;\r
import java.util.List;\r
private String yangModelPrefix;\r
private Date revision = new Date(0L);\r
\r
- private final DateFormat simpleDateFormat = new SimpleDateFormat(\r
+ final static DateFormat simpleDateFormat = new SimpleDateFormat(\r
"yyyy-mm-dd");\r
private final Stack<String> actualPath = new Stack<String>();\r
\r
if ("union".equals(typeName)) {\r
moduleBuilder.addUnionType(getActualPath());\r
} else {\r
- type = parseTypeBody(typeName, typeBody, getActualPath(),\r
+ List<String> typePath = new ArrayList<String>(actualPath);\r
+ typePath.remove(0);\r
+ type = parseTypeBody(typeName, typeBody, typePath,\r
namespace, revision, yangModelPrefix);\r
moduleBuilder.setType(type, getActualPath());\r
}\r