+ public static TypeDefinition<?> javaTypeForBaseYangType(\r
+ List<String> actualPath, URI namespace, Date revision,\r
+ String typeName) {\r
+ TypeDefinition<?> type = null;\r
+\r
+ SchemaPath path = createSchemaPath(actualPath, namespace, revision, typeName);\r
+ if (typeName.startsWith("int")) {\r
+ if ("int8".equals(typeName)) {\r
+ type = new Int8(path);\r
+ } else if ("int16".equals(typeName)) {\r
+ type = new Int16(path);\r
+ } else if ("int32".equals(typeName)) {\r
+ type = new Int32(path);\r
+ } else if ("int64".equals(typeName)) {\r
+ type = new Int64(path);\r
+ }\r
+ } else if (typeName.startsWith("uint")) {\r
+ if ("uint8".equals(typeName)) {\r
+ type = new Uint8(path);\r
+ } else if ("uint16".equals(typeName)) {\r
+ type = new Uint16(path);\r
+ } else if ("uint32".equals(typeName)) {\r
+ type = new Uint32(path);\r
+ } else if ("uint64".equals(typeName)) {\r
+ type = new Uint64(path);\r
+ }\r
+ } else if ("string".equals(typeName)) {\r
+ type = new StringType(path);\r
+ } else if("binary".equals(typeName)) {\r
+ type = new BinaryType(path);\r
+ } else if("boolean".equals(typeName)) {\r
+ type = new BooleanType(path);\r
+ } else if("empty".equals(typeName)) {\r
+ type = new EmptyType(path);\r
+ } else if("instance-identifier".equals(typeName)) {\r
+ type = new InstanceIdentifier(path, null, true);\r
+ }\r